X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=git-pull.sh;h=434c139f077ed5b03fef2b70f2eabb66f7147f23;hb=a9ce45430b380b982de6f6cf24a96849e4d2feed;hp=9868a0bfb478707b361f664a252870b3d1939138;hpb=cfdfc5a3b2289dd54a25d7523c0cf4d3e6efd84b;p=git.git diff --git a/git-pull.sh b/git-pull.sh index 9868a0bfb..434c139f0 100755 --- a/git-pull.sh +++ b/git-pull.sh @@ -40,10 +40,14 @@ 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) +if test -z "$rebase" +then + rebase=$(git config --bool pull.rebase) +fi dry_run= while : do @@ -66,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) @@ -274,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" ;;