X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-repack.sh;h=0aae1a3ed5571a010f80438f8e8a0fc7eb0dc285;hb=bfc07db5756bf7fe227b28daf8e19987819be514;hp=8c32724be75b77f145106f96257afccb56cfc1ef;hpb=d44c782bbd6b0e806e056f9e8ff8cd8e426e67a3;p=git.git diff --git a/git-repack.sh b/git-repack.sh index 8c32724be..0aae1a3ed 100755 --- a/git-repack.sh +++ b/git-repack.sh @@ -3,13 +3,13 @@ # Copyright (c) 2005 Linus Torvalds # -USAGE='[-a] [-d] [-f] [-l] [-n] [-q] [--max-pack-size=N] [--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 no_update_info= all_into_one= remove_redundant= local= quiet= no_reuse= extra= -while case "$#" in 0) break ;; esac +while test $# != 0 do case "$1" in -n) no_update_info=t ;; @@ -20,6 +20,7 @@ do -l) local=--local ;; --max-pack-size=*) extra="$extra $1" ;; --window=*) extra="$extra $1" ;; + --window-memory=*) extra="$extra $1" ;; --depth=*) extra="$extra $1" ;; *) usage ;; esac @@ -63,10 +64,12 @@ case ",$all_into_one," in esac args="$args $local $quiet $no_reuse$extra" -names=$(git-pack-objects --non-empty --all --reflog $args