Raw
1 #!/bin/sh
2
3 HERE=`dirname "$0"`
4
5 case "$1" in
6 compare | '')
7 diff -u "$HERE/mailmap" .mailmap
8 diff -ru "$HERE/remotes" .git/remotes
9 ;;
10 save)
11 cp .mailmap "$HERE/mailmap"
12 cp -a .git/remotes "$HERE"
13 ;;
14 restore)
15 cp "$HERE/mailmap" .mailmap
16 cp -a "$HERE/remotes" .git/.
17 ;;
18 *)
19 echo >&2 "usage: $0 [compare|save|restore]"
20 esac