Thread (9 messages) flat view 9 messages, 2 authors, 2017-12-16

Re: [PATCH] rebase: rebasing can also be done when HEAD is detached

From: Junio C Hamano <hidden>
Date: 2017-11-22 02:13:37

Possibly related (same subject, not in this thread)

Kaartic Sivaraam [off-list ref] writes:
In a repository when attempting to rebase when the HEAD is detached
and it is already up to date with upstream (so there's nothing to do),
the following message is shown

        Current branch HEAD is up to date.

which is clearly wrong as HEAD is not a branch.

Handle the special case of HEAD correctly to give a more precise
error message.

Signed-off-by: Kaartic Sivaraam <redacted>
---
 In this patch, I basically assumed that there would be no
 branch named "HEAD".
Perhaps time to learn "git symbolic-ref HEAD" and use it instead of
depending on the name?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help