-
Really love this project - I switched from working on a mercurial-based project to a git-based one recently, and this has made the change much nicer! One feature I am wondering about is whether it's possible to add the flag Is there an easy solution that I'm missing? Thanks again for the great work! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @annasun28, I'm glad you find git-branchless useful! If you haven't already, it would be appreciated if you were to take the user survey 🙂. To clarify, you want the author dates to reflect the most-recently-modified time, not the committer dates? Can you tell me more about what your workflow around timestamps looks like? The If you're interested in adding an option to force the author timestamps to the present, it should be fairly straightforward, and I can walk you through it in this forum or on Discord. Here's an example of how we fix the timestamp to be in the past: git-branchless/git-branchless/src/commands/amend.rs Lines 96 to 104 in 6a2ed25 Oh, actually, from this code snippet, it looks like |
Beta Was this translation helpful? Give feedback.
Hi @annasun28, I'm glad you find git-branchless useful! If you haven't already, it would be appreciated if you were to take the user survey 🙂.
To clarify, you want the author dates to reflect the most-recently-modified time, not the committer dates? Can you tell me more about what your workflow around timestamps looks like?
The
branchless.restack.preserveTimestamps
option exists, but that does the opposite of what you want, it sounds like: it keeps both the author and committer dates in the past, rather than updating them to the present time.If you're interested in adding an option to force the author timestamps to the present, it should be fairly straightforward, and I can walk you thro…