Skip to content

Commit

Permalink
Add git-push --thin.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Feb 20, 2006
1 parent 2245be3 commit a79a276
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ USAGE='[--all] [--tags] [--force] <repository> [<refspec>...]'
has_all=
has_force=
has_exec=
has_thin=
remote=
do_tags=

Expand All @@ -22,6 +23,8 @@ do
has_force=--force ;;
--exec=*)
has_exec="$1" ;;
--thin)
has_thin="$1" ;;
-*)
usage ;;
*)
Expand Down Expand Up @@ -72,6 +75,7 @@ set x "$remote" "$@"; shift
test "$has_all" && set x "$has_all" "$@" && shift
test "$has_force" && set x "$has_force" "$@" && shift
test "$has_exec" && set x "$has_exec" "$@" && shift
test "$has_thin" && set x "$has_thin" "$@" && shift

case "$remote" in
http://* | https://*)
Expand Down

0 comments on commit a79a276

Please sign in to comment.