Skip to content

Detect the user attempt to commit with amend  #38

Open
@amadeu01

Description

@amadeu01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions