Created
September 4, 2019 19:58
-
-
Save prati0100/aa36fe62cbe3ff3938b4ca9223f44806 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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