X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-repack.sh;h=156c5e8f4aa2f6c04e33af323ef43356fd336adb;hb=17437d45becdc373b171092e09a7853e6b286084;hp=8bf66a4fe8be4bf9e651e71b43268c54d9617776;hpb=98ee8187e4e331716be0797169ba9ddbb26efe56;p=git.git diff --git a/git-repack.sh b/git-repack.sh index 8bf66a4fe..156c5e8f4 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -3,7 +3,7 @@ # Copyright (c) 2005 Linus Torvalds # -USAGE='[-a] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]' +USAGE='[-a] [-d] [-f] [-l] [-n] [-q] [--max-pack-size=N] [--window=N] [--window-memory=N] [--depth=N]' SUBDIRECTORY_OK='Yes' . git-sh-setup @@ -18,7 +18,9 @@ do -q) quiet=-q ;; -f) no_reuse=--no-reuse-object ;; -l) local=--local ;; + --max-pack-size=*) extra="$extra $1" ;; --window=*) extra="$extra $1" ;; + --window-memory=*) extra="$extra $1" ;; --depth=*) extra="$extra $1" ;; *) usage ;; esac @@ -35,7 +37,7 @@ true) esac PACKDIR="$GIT_OBJECT_DIRECTORY/pack" -PACKTMP="$GIT_DIR/.tmp-$$-pack" +PACKTMP="$GIT_OBJECT_DIRECTORY/.tmp-$$-pack" rm -f "$PACKTMP"-* trap 'rm -f "$PACKTMP"-*' 0 1 2 3 15 @@ -62,11 +64,15 @@ case ",$all_into_one," in esac args="$args $local $quiet $no_reuse$extra" -name=$(git-pack-objects --non-empty --all --reflog $args