File tree 2 files changed +11
-2
lines changed
2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -101,13 +101,16 @@ include::merge-options.txt[]
101
101
102
102
:git-pull: 1
103
103
104
- --rebase::
104
+ --rebase[=interactive] ::
105
105
Rebase the current branch on top of the upstream branch after
106
106
fetching. If there is a remote-tracking branch corresponding to
107
107
the upstream branch and the upstream branch was rebased since last
108
108
fetched, the rebase uses that information to avoid rebasing
109
109
non-local changes.
110
110
+
111
+ The optional mode `interactive` tells Git to switch on rebase's interactive
112
+ mode.
113
+ +
111
114
See `branch.<name>.rebase` and `branch.autosetuprebase` in
112
115
linkgit:git-config[1] if you want to make `git pull` always use
113
116
`{litdd}rebase` instead of merging.
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ log_arg= verbosity= progress= recurse_submodules=
43
43
merge_args=
44
44
curr_branch=$( git symbolic-ref -q HEAD)
45
45
curr_branch_short=" ${curr_branch# refs/ heads/ } "
46
+ rebase_options=
46
47
rebase=$( git config --bool branch.$curr_branch_short .rebase)
47
48
dry_run=
48
49
while :
105
106
-r|--r|--re|--reb|--reba|--rebas|--rebase)
106
107
rebase=true
107
108
;;
109
+ --rebase=i|--rebase=interactive)
110
+ rebase_options=-i
111
+ rebase=true
112
+ ;;
108
113
--no-r|--no-re|--no-reb|--no-reba|--no-rebas|--no-rebase)
114
+ rebase_options=
109
115
rebase=false
110
116
;;
111
117
--recurse-submodules)
270
276
merge_name=$( git fmt-merge-msg $log_arg < " $GIT_DIR /FETCH_HEAD" ) || exit
271
277
case " $rebase " in
272
278
true)
273
- eval=" git-rebase $diffstat $strategy_args $merge_args "
279
+ eval=" git-rebase $rebase_options $ diffstat $strategy_args $merge_args "
274
280
eval=" $eval --onto $merge_head ${oldremoteref:- $merge_head } "
275
281
;;
276
282
* )
You can’t perform that action at this time.
0 commit comments