git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* precise keyword matching for pretty switch
@ 2007-02-01 22:43 Nicolas Vilz
  2007-02-02 13:17 ` Eric Wong
  0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Vilz @ 2007-02-01 22:43 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 854 bytes --]

hi,

i noticed today, that the pretty-switch in git-log -diff and many other
tools triggers to "oneline" if you just type an "o" after --pretty=

so, not only 

git log --pretty=oneline

but also

git log --pretty=online
git log --pretty=offline
git log --pretty=omfg

and finally (just to make it short *G*)

git log --pretty=osolomio

does trigger the oneline-feature. Perhaps this is not intended to work
as it works now. I would recommend, that the switch should only accept
the fully matched keyword and not just a lowercase "o" as the first
letter of the keywords following after --pretty=, just to prevent people 
getting bad habbits.

I noticed this by accident, because i made a typo (i typed "online" a few
times, and then noticed that an o is sufficient), perhaps nobody else
noticed before.

Sincerly
Nicolas


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2007-02-02 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-01 22:43 precise keyword matching for pretty switch Nicolas Vilz
2007-02-02 13:17 ` Eric Wong

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).