summaryrefslogtreecommitdiff
path: root/sha1_name.c
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 /sha1_name.c
parente00de24b102da647485aeeeff278c21ab31420a2 (diff)
downloadgit-eb3a48221fd4a0b38c31976028dbab7df51be6d4.tar.gz
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 'sha1_name.c')
-rw-r--r--sha1_name.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sha1_name.c b/sha1_name.c
index d77f77097f..f79a7c9fb8 100644
--- a/sha1_name.c
+++ b/sha1_name.c
@@ -267,7 +267,7 @@ int dwim_ref(const char *str, int len, unsigned char *sha1, char **ref)
return refs_found;
}
-static int dwim_log(const char *str, int len, unsigned char *sha1, char **log)
+int dwim_log(const char *str, int len, unsigned char *sha1, char **log)
{
const char **p;
int logs_found = 0;