summaryrefslogtreecommitdiff
path: root/src/refs.h
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-09-11 12:06:57 +0200
committernulltoken <emeric.fermas@gmail.com>2012-09-25 07:49:14 +0200
commitc030ada7ff7f9c93a2287ca2f57173d66fbff88a (patch)
treec83775cdcbf93ffab1947851d833e5c2ac3bff42 /src/refs.h
parentd75074f4c02e8d8928d20261a891d94d26d41ea7 (diff)
downloadlibgit2-c030ada7ff7f9c93a2287ca2f57173d66fbff88a.tar.gz
refs: make git_reference_normalize_name() accept refspec pattern
Diffstat (limited to 'src/refs.h')
-rw-r--r--src/refs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/refs.h b/src/refs.h
index 082350278..0674d8799 100644
--- a/src/refs.h
+++ b/src/refs.h
@@ -11,6 +11,7 @@
#include "git2/oid.h"
#include "git2/refs.h"
#include "strmap.h"
+#include "buffer.h"
#define GIT_REFS_DIR "refs/"
#define GIT_REFS_HEADS_DIR GIT_REFS_DIR "heads/"
@@ -52,8 +53,9 @@ typedef struct {
void git_repository__refcache_free(git_refcache *refs);
-int git_reference__normalize_name(char *buffer_out, size_t out_size, const char *name);
+int git_reference__normalize_name_lax(char *buffer_out, size_t out_size, const char *name);
int git_reference__normalize_name_oid(char *buffer_out, size_t out_size, const char *name);
+int git_reference__normalize_name(git_buf *buf, const char *name, unsigned int flags);
int git_reference__update(git_repository *repo, const git_oid *oid, const char *ref_name);
/**