projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
diff-tree -c: show a merge commit a bit more sensibly.
[git.git]
/
git-repack.sh
diff --git
a/git-repack.sh
b/git-repack.sh
index
4e16d34
..
1fafb6e
100755
(executable)
--- a/
git-repack.sh
+++ b/
git-repack.sh
@@
-3,7
+3,8
@@
# Copyright (c) 2005 Linus Torvalds
#
# Copyright (c) 2005 Linus Torvalds
#
-. git-sh-setup || die "Not a git archive"
+USAGE='[-a] [-d] [-l] [-n]'
+. git-sh-setup
no_update_info= all_into_one= remove_redundant= local=
while case "$#" in 0) break ;; esac
no_update_info= all_into_one= remove_redundant= local=
while case "$#" in 0) break ;; esac
@@
-13,7
+14,7
@@
do
-a) all_into_one=t ;;
-d) remove_redundant=t ;;
-l) local=t ;;
-a) all_into_one=t ;;
-d) remove_redundant=t ;;
-l) local=t ;;
- *)
break
;;
+ *)
usage
;;
esac
shift
done
esac
shift
done
@@
-41,7
+42,7
@@
esac
if [ "$local" ]; then
pack_objects="$pack_objects --local"
fi
if [ "$local" ]; then
pack_objects="$pack_objects --local"
fi
-name=$(git-rev-list --objects $rev_list $(git-rev-parse $rev_parse) |
+name=$(git-rev-list --objects $rev_list $(git-rev-parse $rev_parse)
2>&1
|
git-pack-objects --non-empty $pack_objects .tmp-pack) ||
exit 1
if [ -z "$name" ]; then
git-pack-objects --non-empty $pack_objects .tmp-pack) ||
exit 1
if [ -z "$name" ]; then