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

Re: rebase hint unmerged file removed

From
Jeff King <peff@peff.net>
Date
Aug 24, 2009, 14:36 UTC
Message-ID
<20090824143657.GA12809@coredump.intra.peff.net>
In-Reply-To
<20090824140549.GA3973@debian.b2j>
On Mon, Aug 24, 2009 at 10:05:49PM +0800, bill lam wrote:
Show 5 quoted lines
> Sometimes during rebase -i, it stopped with an unmerged file but that
> file did not have any sections of conflict marked.  ls-files showed it
> had :1: and :2: but no :3:  I suspected that file was git-rm in that
> commit.  Will it be possible for git status or rebase to give hint
> that unmerged file was actually removed?

The version of "git status" in next (and presumably what will be in v1.6.5) shows unmerged paths with more information. In this case, you would see something like:

  $ echo content >foo && git add foo && git commit -m 'base foo'
  $ echo changes >>foo && git add foo && git commit -m 'change foo'
  $ git checkout -b other HEAD^
  $ git rm foo && git commit -m 'remove foo'
  $ git rebase master
  $ git status
  # Unmerged paths:
  #   (use "git reset HEAD <file>..." to unstage)
  #   (use "git add <file>..." to mark resolution)
  #
  #       deleted by them:    foo
  #
-Peff
Previous: bill lamNext: bill lam
Message 2 of 6 in “rebase hint unmerged file removed”
  1. bill lamAug 24, 2009
  2. Jeff KingAug 24, 2009
  3. bill lamAug 25, 2009
  4. Johannes SixtAug 24, 2009
  5. Johannes SixtAug 25, 2009
  6. Miklos VajnaAug 25, 2009

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.