diff options
author | Junio C Hamano <junkio@cox.net> | 2005-10-11 15:22:48 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-10-11 15:22:48 -0700 |
commit | 013f276eb78967f9742654ebde303c2fbe7a6cd6 (patch) | |
tree | fa6ee220d23337f546a25daa2d8210f5d512cf2b /cache.h | |
parent | f2d6a256272b71f4509e4501a86a0f6c46ee65ad (diff) | |
download | git-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |