From 48ded91674604c9756d53a7e657da0196795136f Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 25 May 2008 20:19:30 -0700 Subject: log --pretty: do not accept bogus "--prettyshort" ... nor bogus "format.pretty = '=short'". Both are syntax errors. Signed-off-by: Junio C Hamano --- pretty.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'pretty.c') 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); -- cgit v1.2.1