git-pair
git-pair copied to clipboard
Commit Messages include stale data when amending
Description
Users may see stale co-author data when amending commit messages in Vim terminal
Steps to reproduce
- Make sure you are currently pairing with at least one person
- Make a commit
- remove all the people you are currently pairing with
git commit --amend
Expected result
You should no longer see stale data in the commit message
Actual result
Previous co-authors were still included in the commit message, although this gets cleaned up by git-pair after you amend your commit message
Possible solution:
- use the
prepare-commit-msghook to possibly check and possibly clean up "co-authored-by" lines.