repo.or.cz
/
git_nutshell_guides.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fixed some typos
[git_nutshell_guides.git]
/
git-optimize.sh
blob
8ffd8d70f6c49cc2addf9e53e6565fb4b3726846
1
#!/bin/sh
2
3
# Edit an uncomment if your git binaries are in some non-standard location
4
#PATH="$PATH:/path/to/bin"
5
6
flags
=
""
7
case
$1
in
8
--aggr
*
|
-a
)
flags
=
"--aggressive"
9
shift
10
;;
11
esac
12
13
[ !
-d
$1
] &&
exit
1
14
15
cd
$1
16
GIT_DIR
=
`pwd`
17
git-gc
$flags