diff options
author | Philippe Blain <levraiphilippeblain@gmail.com> | 2020-11-14 00:34:42 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-16 16:01:13 -0800 |
commit | 4f66d79ae301a74cead51e703d566ec5f395beb8 (patch) | |
tree | 2bb433c73a6626878c20fb6b6b02c0ca2c367747 /t/helper/test-example-decorate.c | |
parent | Git 2.29.2 (diff) | |
download | tgif-4f66d79ae301a74cead51e703d566ec5f395beb8.tar.xz |
pull --rebase: compute rebase arguments in separate function
The function 'run_rebase' is responsible for constructing the
command line to be passed to 'git rebase'. This includes both forwarding
pass-through options given to 'git pull' as well computing the <newbase>
and <upstream> arguments to 'git rebase'.
A following commit will need to access the <upstream> argument in
'cmd_pull' to fix a bug with 'git pull --rebase --recurse-submodules'.
In order to do so, refactor the code so that the <newbase> and
<upstream> commits are computed in a new, separate function,
'get_rebase_newbase_and_upstream'.
Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-example-decorate.c')
0 files changed, 0 insertions, 0 deletions