Subject: Re: [PATCH 3/5] doc/pretty-formats: describe index/time formats for %gd

From: Theodore Ts'o <[email-masked]>
Date: Mon, 11 Jul 2016 12:48:34 -0400

On Mon, Jul 11, 2016 at 01:05:13AM -0400, Jeff King wrote:
> 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