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.
19 lines
298 B
19 lines
298 B
![]()
20 years ago
|
#!/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
|