Skip to content

Commit 3c1e0d6

Browse files
committed
Merge branch 'lt/pull-no-edit'
* lt/pull-no-edit: "git pull" doesn't know "--edit"
2 parents a490603 + 8580830 commit 3c1e0d6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

git-pull.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ test -f "$GIT_DIR/MERGE_HEAD" && die_merge
4040

4141
strategy_args= diffstat= no_commit= squash= no_ff= ff_only=
4242
log_arg= verbosity= progress= recurse_submodules=
43-
merge_args=
43+
merge_args= edit=
4444
curr_branch=$(git symbolic-ref -q HEAD)
4545
curr_branch_short="${curr_branch#refs/heads/}"
4646
rebase=$(git config --bool branch.$curr_branch_short.rebase)
@@ -70,6 +70,10 @@ do
7070
no_commit=--no-commit ;;
7171
--c|--co|--com|--comm|--commi|--commit)
7272
no_commit=--commit ;;
73+
-e|--edit)
74+
edit=--edit ;;
75+
--no-edit)
76+
edit=--no-edit ;;
7377
--sq|--squ|--squa|--squas|--squash)
7478
squash=--squash ;;
7579
--no-sq|--no-squ|--no-squa|--no-squas|--no-squash)
@@ -278,7 +282,7 @@ true)
278282
eval="$eval --onto $merge_head ${oldremoteref:-$merge_head}"
279283
;;
280284
*)
281-
eval="git-merge $diffstat $no_commit $squash $no_ff $ff_only"
285+
eval="git-merge $diffstat $no_commit $edit $squash $no_ff $ff_only"
282286
eval="$eval $log_arg $strategy_args $merge_args $verbosity $progress"
283287
eval="$eval \"\$merge_name\" HEAD $merge_head"
284288
;;

0 commit comments

Comments
 (0)