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

2 messages, 1 author, 2016-06-15 · open the first message on its own page

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

From: Philippe Vaucher <hidden>
Date: 2016-06-15 22:53:47

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

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

From: Philippe Vaucher <hidden>
Date: 2016-06-15 22:53:48

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help