summaryrefslogtreecommitdiff
path: root/attr.c
diff options
context:
space:
mode:
authorLibravatar Kaartic Sivaraam <kaartic.sivaraam@gmail.com>2017-12-16 14:33:19 +0530
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-12-19 10:02:47 -0800
commit08e66700dff55640d4698c081ab3732528563396 (patch)
tree591ea24c6aa729794864ed8baa791bc5cb0bbc0f /attr.c
parentrebase: distinguish user input by quoting it (diff)
downloadtgif-08e66700dff55640d4698c081ab3732528563396.tar.xz
rebase: rebasing can also be done when HEAD is detached
Attempting to rebase when the HEAD is detached and 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 <kaartic.sivaraam@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'attr.c')
0 files changed, 0 insertions, 0 deletions