Hi Eric, On Thursday, August 16, 2018 at 5:22:38 PM UTC+2, Eric Newton wrote: > > I propose default rebase operation should preserve either the commit > date/author date so that I can legitimately use the git commit log as a > backup to my timesheet. A squashed commit clearly loses its dates, but the > rebase operation should preserve commit date/author date. >
Default `rebase` behavior preserves author date already - does that work for you? Otherwise, you can use `--committer-date-is-author-date`[1] <https://git-scm.com/docs/git-rebase#git-rebase---committer-date-is-author-date> option to set (keep) committer date to that same author date, too. You could also make an alias so you don`t have to type it all out each time you need it. What do others think? > As author and committer dates serve different purposes, I think the current defaults are just fine, while additional options do allow fine-tuning where different behavior is needed. But that is only my opinion, of course :) Still, might be `config` option would be nice, like `rebase.commiterDateIsAuthorDate`, or something, but that would be a topic for main Git mailing list[2] <g...@vger.kernel.org>, as Tim already suggested. List archives can be found at public-inbox[3] <https://public-inbox.org/git>. Regards, Buga [1] https://git-scm.com/docs/git-rebase#git-rebase---committer-date-is-author-date [2] g...@vger.kernel.org [3] https://public-inbox.org/git -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.