aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-11 15:22:48 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-11 15:22:48 -0700
commit013f276eb78967f9742654ebde303c2fbe7a6cd6 (patch)
treefa6ee220d23337f546a25daa2d8210f5d512cf2b /cache.h
parentf2d6a256272b71f4509e4501a86a0f6c46ee65ad (diff)
downloadgit-013f276eb78967f9742654ebde303c2fbe7a6cd6.tar.gz
git-013f276eb78967f9742654ebde303c2fbe7a6cd6.tar.xz
show-branch: optionally use unique prefix as name.
git-show-branch acquires two new options. --sha1-name to name commits using the unique prefix of their object names, and --no-name to not to show names at all. This was outlined in <7vk6gpyuyr.fsf@assigned-by-dhcp.cox.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 64cbcac5b..41cc22c1a 100644
--- a/cache.h
+++ b/cache.h
@@ -194,6 +194,7 @@ extern char *git_path(const char *fmt, ...) __attribute__((format (printf, 1, 2)
extern char *sha1_file_name(const unsigned char *sha1);
extern char *sha1_pack_name(const unsigned char *sha1);
extern char *sha1_pack_index_name(const unsigned char *sha1);
+extern const char *find_unique_abbrev(const unsigned char *sha1, int);
extern const unsigned char null_sha1[20];
int git_mkstemp(char *path, size_t n, const char *template);