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

Feature Request: git mv --after (new flag)

From
FFMorschel <git@fmorschel.dev>
Date
Aug 4, 2025, 14:05 UTC
Message-ID
<2f505f75-112a-4b71-bb05-ea0cb7731cd7@fmorschel.dev>
In-Reply-To
<0afc01b2-11a2-4f77-a858-7a444e8bb1d4@fmorschel.dev>

This is a request to add an –after mode to git mv command to explicitly mark a filesystem rename after it has occurred (analogous to mercurial => hg mv –after).

This would allow IDE/Language refactor renames/moves and would make sure git still detects the moves correctly for keeping the correct commit history.

If this has already been requested and I missed, please reply this with the original request and consider this closed.

If anything else is required please let me know since this is my first interaction with this tracker. Thank you for this incredible tool!

&#8203;
Next: Konstantin Khomoutov
Message 1 of 10 in “Feature Request: git mv --after (new flag)”
  1. FMorschelAug 4, 2025
  2. Konstantin KhomoutovAug 4, 2025
  3. FMorschelAug 4, 2025
  4. Kristoffer HaugsbakkAug 4, 2025
  5. Junio C HamanoAug 4, 2025
  6. Konstantin KhomoutovAug 5, 2025
  7. FMorschelAug 5, 2025
  8. Junio C HamanoAug 6, 2025
  9. Johannes SixtAug 5, 2025
  10. Junio C HamanoAug 5, 2025

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.