Skip to content

Commit

Permalink
Merge branch 'lt/pull-no-edit'
Browse files Browse the repository at this point in the history
* lt/pull-no-edit:
  "git pull" doesn't know "--edit"
  • Loading branch information
Junio C Hamano committed Feb 14, 2012
2 parents a490603 + 8580830 commit 3c1e0d6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions git-pull.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test -f "$GIT_DIR/MERGE_HEAD" && die_merge

strategy_args= diffstat= no_commit= squash= no_ff= ff_only=
log_arg= verbosity= progress= recurse_submodules=
merge_args=
merge_args= edit=
curr_branch=$(git symbolic-ref -q HEAD)
curr_branch_short="${curr_branch#refs/heads/}"
rebase=$(git config --bool branch.$curr_branch_short.rebase)
Expand Down Expand Up @@ -70,6 +70,10 @@ do
no_commit=--no-commit ;;
--c|--co|--com|--comm|--commi|--commit)
no_commit=--commit ;;
-e|--edit)
edit=--edit ;;
--no-edit)
edit=--no-edit ;;
--sq|--squ|--squa|--squas|--squash)
squash=--squash ;;
--no-sq|--no-squ|--no-squa|--no-squas|--no-squash)
Expand Down Expand Up @@ -278,7 +282,7 @@ true)
eval="$eval --onto $merge_head ${oldremoteref:-$merge_head}"
;;
*)
eval="git-merge $diffstat $no_commit $squash $no_ff $ff_only"
eval="git-merge $diffstat $no_commit $edit $squash $no_ff $ff_only"
eval="$eval $log_arg $strategy_args $merge_args $verbosity $progress"
eval="$eval \"\$merge_name\" HEAD $merge_head"
;;
Expand Down

0 comments on commit 3c1e0d6

Please sign in to comment.