Would it make sense to add a commit.signOff config?
- From
- Stefan Haller <lists@haller-berlin.de>
- Date
- Dec 14, 2025, 16:10 UTC
- Message-ID
- <86c5d40d-5a06-4a69-90d8-a737685b0536@haller-berlin.de>
I find it interesting that of all the git commands that take a --signoff argument, format-patch is the only one that has a corresponding config to turn it on for all invocations. I would have thought that git commit needs this even more; I find it reasonable for users to decide that they want to add a Signed-off-by trailer to all the commits they make.
But then, what about merge, cherry-pick, and revert? Does it make sense to turn it on globally for those as well?
The background of this question is lazygit, which has a config for enabling --signoff for all commits made by it. We recently had a feature request to extend the meaning of that config to revert as well, and the discussion came up whether that's a good idea, and if so, whether it should also extend to cherry-pick and merge.
Any opinions about this? Since I work mostly in closed-source contexts I don't have much experience with the meaning of Signed-off-by trailers.
-Stefan