git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Hint for rebase in progress

From
Stefan Naewe <stefan.naewe@atlas-elektronik.com>
Date
Feb 18, 2011, 09:07 UTC
Message-ID
<4D5E36DD.7060307@atlas-elektronik.com>
In-Reply-To
<AANLkTikY-e7pD1nnbnz_m41wn0AbyF7Fj4z8K6WuznOL@mail.gmail.com>
On 2/18/2011 9:12 AM, Jeenu V wrote:
Show 14 quoted lines
> 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.
Previous: Jeenu V
Message 2 of 2 in “Hint for rebase in progress”
  1. Jeenu VFeb 18, 2011
  2. Stefan NaeweFeb 18, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.