pretty: treat "--format=" as an empty userformat
commitc75e7ad28a34081ca6e7e53c0551fa6c99b208b0
authorJeff King <peff@peff.net>
Tue, 29 Jul 2014 17:54:46 +0000 (29 13:54 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 30 Jul 2014 19:30:06 +0000 (30 12:30 -0700)
tree5ad17ad53bdc10e5eaeecf5c75fddddab39dbab0
parentae18165fbbf5e15ab2371d09f79cd12ee403c51e
pretty: treat "--format=" as an empty userformat

Until now, we treated "--pretty=" or "--format=" as "give me
the default format". This was not planned nor documented,
but only what happened to work due to our parsing of
"--pretty" (which should give the default format).

Let's instead let these be an actual empty userformat.
Otherwise one must write out the annoyingly long
"--pretty=tformat:" to get the same behavior.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pretty.c