Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-05-26 07:19:30 +0400
committerJunio C Hamano <gitster@pobox.com>2008-05-26 07:29:07 +0400
commit48ded91674604c9756d53a7e657da0196795136f (patch)
treead68b98c2e441a63355d2b5368e7fb9fa6535852 /pretty.c
parent37869f40a817d4bf81f05cc62d9d39db7a3dc161 (diff)
log --pretty: do not accept bogus "--prettyshort"
... nor bogus "format.pretty = '=short'". Both are syntax errors. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
-rw-r--r--pretty.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/pretty.c b/pretty.c
index 687293224c..8eb39e915e 100644
--- a/pretty.c
+++ b/pretty.c
@@ -28,8 +28,6 @@ void get_commit_format(const char *arg, struct rev_info *rev)
rev->commit_format = CMIT_FMT_DEFAULT;
return;
}
- if (*arg == '=')
- arg++;
if (!prefixcmp(arg, "format:") || !prefixcmp(arg, "tformat:")) {
const char *cp = strchr(arg, ':') + 1;
free(user_format);