summaryrefslogtreecommitdiff
path: root/refs.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2009-03-09 01:06:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-09 22:41:16 (GMT)
commita9c37a72c4fbc8537de294d66b05bdfd7f9a4016 (patch)
tree117ca075b1b84094aaabc9e4145434868ab43228 /refs.h
parent8321c56b6bae25a2d70790f452df894be536b32c (diff)
downloadgit-a9c37a72c4fbc8537de294d66b05bdfd7f9a4016.zip
git-a9c37a72c4fbc8537de294d66b05bdfd7f9a4016.tar.gz
git-a9c37a72c4fbc8537de294d66b05bdfd7f9a4016.tar.bz2
Use a common function to get the pretty name of refs
The result should be consistent between fetch and push, so we ought to use the same code in both cases, even though it's short. Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs.h')
-rw-r--r--refs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/refs.h b/refs.h
index 29bdcec..68c2d16 100644
--- a/refs.h
+++ b/refs.h
@@ -79,6 +79,8 @@ extern int for_each_reflog(each_ref_fn, void *);
#define CHECK_REF_FORMAT_WILDCARD (-3)
extern int check_ref_format(const char *target);
+extern const char *prettify_ref(const struct ref *ref);
+
/** rename ref, return 0 on success **/
extern int rename_ref(const char *oldref, const char *newref, const char *logmsg);