Re: [PATCH] rev-parse: include HEAD in --all output

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] rev-parse: include HEAD in --all output

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:02:25

Max Kirillov [off-list ref] writes:
btw, manpage for git-rev-parse says "Show all refs found in
refs/.", should it also be changed?
I would rather see "rev-parse --all" not to include HEAD, especially
if it has been documented that way.

Re: [PATCH] rev-parse: include HEAD in --all output

From: Max Kirillov <hidden>
Date: 2016-06-15 23:02:25

On Tue, Sep 02, 2014 at 09:59:17AM -0700, Junio C Hamano wrote:
I would rather see "rev-parse --all" not to include HEAD,
especially if it has been documented that way.
Ok, then probably I'll want to change it in gitk.

But, with the "multiple working trees" feature, I would also
want to get other HEADs in view, even if they are detached.
I could add it to --all when it returns detached HEAD (like
in git-rev-list), but if it does not, probably some
new dedicated option should be for that purpose. Something
like "git rev-parse --heads", for example.

-- 
Max
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help