Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect the user attempt to commit with amend #38

Open
amadeu01 opened this issue Aug 19, 2020 · 1 comment
Open

Detect the user attempt to commit with amend #38

amadeu01 opened this issue Aug 19, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@amadeu01
Copy link
Member

If a user attempts to commit with --amend flag, it will duplicate the co-authored-by.
What is the expected behaviour for this?
Should we clean all the current authors, if any? Or, just ignore?

Below some suggestion for simply ignore amends ⤵️

IS_AMEND=$(ps -ocommand= -p $PPID | grep -e '--amend');

if [ -n "$IS_AMEND" ]; then
  return;
fi
@amadeu01 amadeu01 added the enhancement New feature or request label Aug 19, 2020
@amadeu01
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant