git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* log --pretty accepts incomplete pre-defined formats
@ 2016-04-06  6:13 Sidhant Sharma
  2016-04-06 15:15 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Sidhant Sharma @ 2016-04-06  6:13 UTC (permalink / raw)
  To: Git Mailing List

Hi,

Recently while playing around with git log, I realized that it is possible to
pass incomplete (pre-defined) format names. For example, it is possible to use
`git log --pretty=one` instead of oneline and it would still output the logs in
oneline formatting. Same goes for other formats such as 'raw', 'short' and others.
I looked at the code and it seems that it is intentionally kept so. It this so?
I'm curious to know the reason behind keeping this so.


Thanks and regards,
Sidhant Sharma

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-06 21:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-06  6:13 log --pretty accepts incomplete pre-defined formats Sidhant Sharma
2016-04-06 15:15 ` Junio C Hamano
2016-04-06 21:03   ` Eric Wong
2016-04-06 21:07     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).