You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Rebasing branches is a prevalent part of my workflow. To avoid mangling dates during this, I always rebase with the --committer-date-is-author-date flag to preserve the original date of the commit when viewed in GitHub, BitBucket, or any other application that shows the committer date instead of the author date. As far as I can tell, Lazygit has no way to set this flag globally for all rebase operations.
Describe the solution you'd like
A config option to set this flag automatically when doing any type of rebase.
Describe alternatives you've considered
Rebasing outside of Lazygit.
Do complex interactive rebases within Lazygit, then go back and rebase again manually with the flag to fix the dates (when it is reasonable to do so).
Additional context
The --committer-date-is-author-date flag implies --force-rebase, which may not always be desired. I suppose ideally it'd only be applied if the operation would actually change the committer date, but I'm not sure how Git handles dates when fast-forwarding to know if that's necessary, or if it's feasible to implement.
The text was updated successfully, but these errors were encountered:
I don't believe lazygit has a way to set this flag globally either. The only explicit interactions we do with committer date vs author date is allow sorting based on each of them.
Sounds like another case that would be helped by #2849
To make sure I'm hearing your request correctly, this is a setting that you image people would either want on all the time, or not at all? So it is better suited by a configuration option, and not by a 2nd keybinding that does a rebase with this flag.
Is your feature request related to a problem? Please describe.
Rebasing branches is a prevalent part of my workflow. To avoid mangling dates during this, I always rebase with the
--committer-date-is-author-date
flag to preserve the original date of the commit when viewed in GitHub, BitBucket, or any other application that shows the committer date instead of the author date. As far as I can tell, Lazygit has no way to set this flag globally for all rebase operations.Describe the solution you'd like
A config option to set this flag automatically when doing any type of rebase.
Describe alternatives you've considered
Additional context
The
--committer-date-is-author-date
flag implies--force-rebase
, which may not always be desired. I suppose ideally it'd only be applied if the operation would actually change the committer date, but I'm not sure how Git handles dates when fast-forwarding to know if that's necessary, or if it's feasible to implement.The text was updated successfully, but these errors were encountered: