Add git-push --thin.
Maybe we would want to make this default before it graduates to the master branch, but in the meantime to help testing things, this allows you to say "git push --thin destination". Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Feb 20, 2006 at 00:09 UTC
a79a27636098be2b9652f59bd447ac074f741e26
1 file changed
+4
git-push.sh
+4
@@ -8,6 +8,7 @@ USAGE='[--all] [--tags] [--force] <repository> [<refspec>...]'
8
has_all=
9
has_force=
10
has_exec=
11
+has_thin=
12
remote=
13
do_tags=
14
@@ -22,6 +23,8 @@ do
23
has_force=--force ;;
24
--exec=*)
25
has_exec="$1" ;;
26
+ --thin)
27
+ has_thin="$1" ;;
28
-*)
29
usage ;;
30
*)
@@ -72,6 +75,7 @@ set x "$remote" "$@"; shift
75
test "$has_all" && set x "$has_all" "$@" && shift
76
test "$has_force" && set x "$has_force" "$@" && shift
77
test "$has_exec" && set x "$has_exec" "$@" && shift
78
+test "$has_thin" && set x "$has_thin" "$@" && shift
79
80
case "$remote" in
81
http://* | https://*)