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

2017-11-21 Thread Junio C Hamano
Kaartic Sivaraam 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

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

2017-11-21 Thread Kaartic Sivaraam
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