Re: [PATCH 3/5] doc/pretty-formats: describe index/time formats for %gd
- From
Theodore Ts'o <tytso@mit.edu>
- Date
- Jul 11, 2016, 16:48 UTC
- Message-ID
- <20160711164834.GC3890@thunk.org>
- In-Reply-To
- <20160711050513.GC32514@sigill.intra.peff.net>
On Mon, Jul 11, 2016 at 01:05:13AM -0400, Jeff King wrote:
Show 6 quoted lines
> The "reflog selector" format changes based on a series of > heuristics, and that applies equally to both stock "log -g" > output, as well as "--format=%gd". The documentation for > "%gd" doesn't cover this. Let's mention the multiple formats > and refer the user back to the "-g" section for the complete > rules.
Is it worth mentioning that the shortening only happens if the user specifies a selector with '/' in it in the first place? I was confused when I was first playing with these selectors because %gd and %gD are identical if you run
git reflog --format=%gd -3 master git reflog --format=%gD -3 master
and are only different if you run:
git reflog --format=%gd -3 refs/heads/master git reflog --format=%gD -3 refs/heads/master
- Ted