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

is it a bug that git status show the in-progress 'edit' in an interactive rebase as 'done'?

From
Britton Kerin <britton.kerin@gmail.com>
Date
Feb 6, 2024, 10:02 UTC
Message-ID
<CAC4O8c_oKT+a0hm+tqSOG7d1=AuJJKy5bsh72cJKVsWynvHw+w@mail.gmail.com>

If I do 'git rebase -i master' from a branch then set the action of the first two commits of a branch being rebased to 'edit' and exit the editor, an immediately subsequent 'git status' shows (for example):

git status
interactive rebase in progress; onto e79552d197
Last command done (1 command done):
   edit 71b73de914 message for first commit
Next commands to do (6 remaining commands):
   edit 3a478a7a08 message for second commit
   pick fab7159cf4 message for third commit
  (use "git rebase --edit-todo" to view and edit)
You are currently editing a commit while rebasing branch
'my_completion_updates' on 'e79552d197'.
  (use "git commit --amend" to amend the current commit)
  (use "git rebase --continue" once you are satisfied with your changes)

This seems wrong, because until git rebase --continue has been done the edit operation for the first commit is *ongoing* and it would be much clearer for the output of status to accurately say so.

The same applies to edit operations that don't happen to be the first.
Is this a bug or is there some reason it's like this that I'm not seeing?
Britton
Next: Oswald Buddenhagen
Message 1 of 4 in “is it a bug that git status show the in-progress 'edit' in an interactive rebase as 'done'?”
  1. Britton KerinFeb 6, 2024
  2. Oswald BuddenhagenFeb 6, 2024
  3. Sergey OrganovFeb 6, 2024
  4. Britton KerinFeb 6, 2024

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.