-
Is there a way to do In particular, I've got a commit with two parents from a month ago, and I want to rebase it to have just one parent. It's in an immutable "main" branch. Essentially:
I want When I try something like I'm actually okay deleting that one commit completely, but something like When I search around, I see claims that timestamps aren't supposed to be updated with jj, but that's not been my experience. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Git commits have two timestamps: the author timestamp and the committer timestamp. jj updates only the committer time when rebasing, amending, etc. The author timestamp is preserved. That's what people are likely referring to when they say timestamps aren't updated. If you'd rather see author timestamps in your log output, you can change the |
Beta Was this translation helpful? Give feedback.
-
Ah, thanks! It looks like Is there a way to do that with |
Beta Was this translation helpful? Give feedback.
Git commits have two timestamps: the author timestamp and the committer timestamp.
jj updates only the committer time when rebasing, amending, etc. The author timestamp is preserved.
That's what people are likely referring to when they say timestamps aren't updated.
If you'd rather see author timestamps in your log output, you can change the
commit_timestamp(commit)
template alias to becommit.author().timestamp()
.