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

2 messages from 2012-05-09 to 2012-05-10. Participants: Philippe Vaucher.
Thread: https://gitlist.dev/t/30483

## Philippe Vaucher, 2012-05-09 12:36

Subject: git rebase --committer-date-is-author-date with -i/-p
Message-ID: <CAGK7Mr7S42r_Xx0qygRCp+EujuuBF1MT1Y0vqCY+=EBT5++Urw@mail.gmail.com>
URL: https://gitlist.dev/e/CAGK7Mr7S42r_Xx0qygRCp%2BEujuuBF1MT1Y0vqCY%2B%3DEBT5%2B%2BUrw%40mail.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

```

## Philippe Vaucher, 2012-05-10 11:33

Subject: Re: git rebase --committer-date-is-author-date with -i/-p
Message-ID: <CAGK7Mr4sJGjPn-6QjM2Mmev-JxnSYfNAtTVofLrandMeyaUc3w@mail.gmail.com>
URL: https://gitlist.dev/e/CAGK7Mr4sJGjPn-6QjM2Mmev-JxnSYfNAtTVofLrandMeyaUc3w%40mail.gmail.com
In-Reply-To: <CAGK7Mr7S42r_Xx0qygRCp+EujuuBF1MT1Y0vqCY+=EBT5++Urw@mail.gmail.com>

```
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

```
