Skip to content

Instantly share code, notes, and snippets.

@paulweb515
Created February 18, 2014 02:53
Show Gist options
  • Save paulweb515/9063859 to your computer and use it in GitHub Desktop.
Save paulweb515/9063859 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
cat - >'/tmp/Jonathan Balsano' <<EOF
Signed-off-by: Jonathan Balsano <[email protected]>
EOF
cat - >'/tmp/Melody Ju' <<EOF
Signed-off-by: Melody Ju <[email protected]>
EOF
cat - >'/tmp/Kaitlin Huben' <<EOF
Signed-off-by: Kaitlin Huben <[email protected]>
EOF
cat - >'/tmp/Hongying Zhang' <<EOF
Signed-off-by: Hongying Zhang <[email protected]>
EOF
git filter-branch -f --tag-name-filter cat --msg-filter '
cat - "/tmp/$GIT_AUTHOR_NAME"
' -- pwebster/tempTag..HEAD
git filter-branch -f --tag-name-filter cat --commit-filter '
if [ "$GIT_AUTHOR_NAME" = "Hongying Zhang" ];
then
GIT_AUTHOR_NAME="Hongying Zhang";
GIT_AUTHOR_EMAIL="[email protected]";
git commit-tree "$@";
else
git commit-tree "$@";
fi' -- pwebster/tempTag..HEAD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment