You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
328 B

#!/bin/sh
HERE=`dirname "$0"`
case "$1" in
compare | '')
diff -u "$HERE/mailmap" .mailmap
diff -ru "$HERE/remotes" .git/remotes
;;
save)
cp .mailmap "$HERE/mailmap"
cp -a .git/remotes "$HERE"
;;
restore)
cp "$HERE/mailmap" .mailmap
cp -a "$HERE/remotes" .git/.
;;
*)
echo >&2 "usage: $0 [compare|save|restore]"
esac