threads / discuss / 30483

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

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

## tl;dr

2 messages between May 9, 2012 and May 10, 2012.

replies: 1people: 1as markdown or json

Philippe Vaucher· May 9, 2012, 12:36 UTC · lore
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

Philippe Vaucher· May 10, 2012, 11:33 UTC · re: Philippe Vaucher · lore

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

I see that it's probably possible to make it work by changing `do_with_author` in git-rebase--interactive.sh, if I manage to add the option to it and pass it from git-rebase.sh would people be interested in this feature?

Philippe

← back to recent threads