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

git rebase --committer-date-is-author-date with -i/-p

From
PVPhilippe Vaucher <philippe.vaucher@gmail.com>
Date
May 9, 2012, 12:36 UTC
Message-ID
<CAGK7Mr7S42r_Xx0qygRCp+EujuuBF1MT1Y0vqCY+=EBT5++Urw@mail.gmail.com>
Hi,

Why doesn't git rebase support --committer-date-is-author-date with the -i or -p flag?

The only workaround I found so far was to rebase anyway then use `git filter-branch` to set GIT_COMMITER_DATE to GIT_AUTHOR_DATE for all commits, but this is far from optimal as it completely loses the original GIT_COMMITER_DATE.

The use case for this is heavy history rewriting for very ancient commits, squashing a range of old commits togethers. The commit date being modified leads to trouble with tools that rely on it.

Is there a better workaround?

Thanks, Philippe

Next: Philippe Vaucher
Message 1 of 2 in “git rebase --committer-date-is-author-date with -i/-p”
  1. Philippe VaucherMay 9, 2012
  2. Philippe VaucherMay 10, 2012

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.