Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Provide a more meaningful initial "From " line when using --compose in git-send-email.
[gitweb.git]
/
rev-parse.c
diff --git
a/rev-parse.c
b/rev-parse.c
index 3c99a79eb354036137a28cc586ca58555f6162bc..6bf205a8f53c6af76bb1cc4df7bf37e46d378890 100644
(file)
--- a/
rev-parse.c
+++ b/
rev-parse.c
@@
-53,6
+53,10
@@
static int is_rev_argument(const char *arg)
};
const char **p = rev_args;
+ /* accept -<digit>, like traditional "head" */
+ if ((*arg == '-') && isdigit(arg[1]))
+ return 1;
+
for (;;) {
const char *str = *p++;
int len;