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

[BUG] bulk move silently dropped, leaving the "delete" part in work dir, on commit reorder (rebase -i)

From
Yydirson@free.fr <ydirson@free.fr>
Date
Apr 7, 2020, 16:01 UTC
Message-ID
<1537903963.805193304.1586275292611.JavaMail.root@zimbra39-e7>
In-Reply-To
<1249625346.805132902.1586274429644.JavaMail.root@zimbra39-e7>
Hello all,

Please find attached a fast-export test-case for the problem. It contains an "original state" commit and 2 commits moving lots of files around. As context, the first one is a logical fixup of the second one, adding one more move to the bulk move in the second commit.

If I use "rebase -i" to reorder the 2 commits, "subject 1" which originally contains 4 blob changes and 324 moves, loses all the renames. Problem exists at least in 2.25.1 and 2.26.0 as shipped in Debian testing.

Additionally, the files in workdir are all locally deleted and stay there as "Changes not staged for commit", which should have prevented the rebase from proceeding to the second "pick".

 (ref0/ref1)$ git log --raw HEAD^^..
commit d368ee70ca358f4877185175780147b5bfba0ec5 (HEAD -> ref0/ref1)
Author: User 0 <user0@example.com>
Date:   Thu Apr 2 17:15:29 2020 +0200
    subject 1
    
    body
:100644 100644 16fd26f 16fd26f R100     path15/path30/path89/path102/path106/path107    path15/path607/path30/path89/path102/path106/path107
commit a6b4902d848acdeeb0238d22dd7a093317e7a389
Author: User 0 <user0@example.com>
Date:   Wed Apr 1 18:14:31 2020 +0200
    subject 2
    
    body
:100644 100644 386a5e0 67bb842 M        path12/path10
:100644 100644 703e2a3 57729f1 M        path13/path10
:100644 100644 386a5e0 67bb842 M        path14/path10
:100644 100644 53d9ddb fe616ea M        path9/path10
 (ref0/ref1)$ 
Next: Elijah Newren
Message 1 of 2 in “[BUG] bulk move silently dropped, leaving the "delete" part in work dir, on commit reorder (rebase -i)”
  1. ydirson@free.frApr 7, 2020
  2. Elijah NewrenApr 7, 2020

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.