aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-02-09 01:28:23 +0100
committerJunio C Hamano <junkio@cox.net>2007-02-08 17:48:22 -0800
commiteb3a48221fd4a0b38c31976028dbab7df51be6d4 (patch)
tree054ee03e6d638c4fdd9f2d5ac9ed5f29bbcf2e54 /cache.h
parente00de24b102da647485aeeeff278c21ab31420a2 (diff)
downloadgit-eb3a48221fd4a0b38c31976028dbab7df51be6d4.tar.gz
git-eb3a48221fd4a0b38c31976028dbab7df51be6d4.tar.xz
log --reflog: use dwim_log
Since "git log origin/master" uses dwim_log() to match "refs/remotes/origin/master", it makes sense to do that for "git log --reflog", too. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> 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 87142571b..c62b0b090 100644
--- a/cache.h
+++ b/cache.h
@@ -302,6 +302,7 @@ extern char *sha1_to_hex(const unsigned char *sha1); /* static buffer result! */
extern int read_ref(const char *filename, unsigned char *sha1);
extern const char *resolve_ref(const char *path, unsigned char *sha1, int, int *);
extern int dwim_ref(const char *str, int len, unsigned char *sha1, char **ref);
+extern int dwim_log(const char *str, int len, unsigned char *sha1, char **ref);
extern int create_symref(const char *ref, const char *refs_heads_master, const char *logmsg);
extern int validate_headref(const char *ref);