repo.or.cz
/
git
/
jrn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
What's cooking (2014/06 #02)
[git/jrn.git]
/
info
/
meta
/
doit
blob
0bc74dfc1aca2d403b3d4d4de8b5f74514de9e7f
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