# Hint for rebase in progress

2 messages from 2011-02-18 to 2011-02-18. Participants: Jeenu V, Stefan Naewe.
Thread: https://gitlist.dev/t/26545

## Jeenu V, 2011-02-18 08:12

Subject: Hint for rebase in progress
Message-ID: <AANLkTikY-e7pD1nnbnz_m41wn0AbyF7Fj4z8K6WuznOL@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTikY-e7pD1nnbnz_m41wn0AbyF7Fj4z8K6WuznOL%40mail.gmail.com

```
I was once in the middle of an interactive rebase, editing a commit
and happened to do a git status. I could see that Git warns in red
color "Not currently on any branch". Similarly, git branch said "* (no
branch)". Having gone this far, wouldn't it be helpful for Git to also
remind "Rebase in progress" or something like that, some where in
these hints? Since git status is meant to display the current status
of the tree, I think it's only apt for it to report so.

Because, once in a active rebase session, I think there's no command
which tells user that an interactive session is in progress (or is
there?); gitk doesn't help either. If the user happens to take a break
or something, it might be bit perplexing to figure out where he was,
why it was (seeing the working directory headless).

-- 
Jeenu

```

## Stefan Naewe, 2011-02-18 09:07

Subject: Re: Hint for rebase in progress
Message-ID: <4D5E36DD.7060307@atlas-elektronik.com>
URL: https://gitlist.dev/e/4D5E36DD.7060307%40atlas-elektronik.com
In-Reply-To: <AANLkTikY-e7pD1nnbnz_m41wn0AbyF7Fj4z8K6WuznOL@mail.gmail.com>

```
On 2/18/2011 9:12 AM, Jeenu V wrote:
> I was once in the middle of an interactive rebase, editing a commit
> and happened to do a git status. I could see that Git warns in red
> color "Not currently on any branch". Similarly, git branch said "* (no
> branch)". Having gone this far, wouldn't it be helpful for Git to also
> remind "Rebase in progress" or something like that, some where in
> these hints? Since git status is meant to display the current status
> of the tree, I think it's only apt for it to report so.
> 
> Because, once in a active rebase session, I think there's no command
> which tells user that an interactive session is in progress (or is
> there?); gitk doesn't help either. If the user happens to take a break
> or something, it might be bit perplexing to figure out where he was,
> why it was (seeing the working directory headless).
> 

Look in $OFFICIAL-GIT-REPO/contrib/completion/git-completion.bash.
Set your 'PS1' as explained there and you will see at your command
prompt if you're currently rebasing.

HTH,
  Stefan
-- 
----------------------------------------------------------------
/dev/random says: URA Redneck if you own a homemade fur coat.

```
