projects
/
git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
What's cooking (2021/06 #06)
[git]
/
info
/
meta
/
doit
1
#!/bin/sh
2
3
HERE=`dirname "$0"`
4
REPO=`expr "$HERE" : '\(.*/\)info/meta'`
5
6
case "$1" in
7
compare | '')
8
diff -ru "$HERE/remotes" "$REPO.git/remotes"
9
;;
10
save)
11
cp -a "$REPO.git/remotes" "$HERE"
12
;;
13
restore)
14
cp -a "$HERE/remotes" "$REPO.git/."
15
;;
16
*)
17
echo >&2 "usage: $0 [compare|save|restore]"
18
esac