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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html