git/list[1] front-page[2] threads[3] people[4] search[5] about
 

precise keyword matching for pretty switch

From
Nicolas Vilz <niv@iaglans.de>
Date
Feb 1, 2007, 22:43 UTC
Message-ID
<20070201224339.GA29666@hermes.lan.home.vilz.de>
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

Next: Eric Wong
Message 1 of 2 in “precise keyword matching for pretty switch”
  1. Nicolas VilzFeb 1, 2007
  2. Eric WongFeb 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.