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.
 
 
 
 
 
 

18 lines
298 B

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