summaryrefslogtreecommitdiff
path: root/builtin-diff.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-05-06 22:56:38 +0200
committerJunio C Hamano <junkio@cox.net>2006-05-06 14:43:33 -0700
commite686eb9870d6b382f0760e3e859e93c8c2dfb31b (patch)
treedc2e0a4d1fa970c1dd8d9252536d8496e785bf4b /builtin-diff.c
parentc66b6c067e49c5ec80f1254daef79aa1c7f5ffce (diff)
downloadgit-e686eb9870d6b382f0760e3e859e93c8c2dfb31b.tar.gz
fmt-patch: understand old <his> notation
When calling "git fmt-patch HEAD~5", you now get the same as if you would have said "git fmt-patch HEAD~5..". This makes it easier for my fingers which are so used to the old syntax. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-diff.c')
-rw-r--r--builtin-diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-diff.c b/builtin-diff.c
index 636edbf2a7..20873162f9 100644
--- a/builtin-diff.c
+++ b/builtin-diff.c
@@ -232,7 +232,7 @@ static int builtin_diff_combined(struct rev_info *revs,
return 0;
}
-static void add_head(struct rev_info *revs)
+void add_head(struct rev_info *revs)
{
unsigned char sha1[20];
struct object *obj;