Let's assume a git repository where the following hold true:
- Most commits are signed.
- Rebases are often used, so as to have a clean history.
- Sometimes multiple persons work on the same branch.
- Signing a commit is assumed to mean signing the equivalent diff, not signing the entire state of the repo (despite signed commits also signing hash of ancestors)
Now, I want to rebase a branch where I did part of the work and a co-worker pushed some commits ; and I'd like to "keep" signatures on the commits I made (ie. re-sign all commits I made with the new history, even in case of merge conflict), but not to sign work not written by me (ie. I prefer losing signatures on commits from my coworker than signing them).
I could use git rebase -S
(like proposed in answers to this question) ; but that would also sign commits from my co-worker.
Is there a way to do this?