Thread (5 messages) flat view 5 messages, 3 authors, 2016-06-15

Re: default aliases (ci, di, st, co)

From: Jeff King <hidden>
Date: 2016-06-15 22:47:03

On Fri, Jul 10, 2009 at 01:08:27AM +0200, Paolo Bonzini wrote:
Yes, it's in the wiki and in my .gitconfig:

        whatis = "!sh -c 'git show -s --pretty=\"format:%h (%s, %ai\"
\"$@\" | sed -e \"s/ [012][0-9]:[0-5][0-9]:[0-5][0-9]
[-+][0-9][0-9][0-9][0-9]$/)\\n/\"' -"
Is there a reason not to simply use:

  whatis = "show -s --pretty='format:%h (%s, %ad)' --date=short"

these days?

-Peff

P.S. Actually, I use --no-pager in my version, so I use 'tformat' to
explicitly end it with a newline, which is nicer for actually showing
the output on the terminal.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help