Skip to content

Instantly share code, notes, and snippets.

@prati0100
Created September 4, 2019 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prati0100/aa36fe62cbe3ff3938b4ca9223f44806 to your computer and use it in GitHub Desktop.
Save prati0100/aa36fe62cbe3ff3938b4ca9223f44806 to your computer and use it in GitHub Desktop.
#!/usr/bin/sh
. git-sh-setup
# Add a Signed-off-by by me when applying patches. Only do this for projects
# you are the maintainer of, and need to add your signoff before pushing out.
SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment