git/info/meta/doit
Junio C Hamano 1ad3ae4c17 Add Meta information.
Signed-off-by: Junio C Hamano <junkio@cox.net>
2005-11-05 10:58:46 -08:00

19 lines
298 B
Bash
Executable File

#!/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