diff options
author | Elijah Newren <newren@gmail.com> | 2021-07-22 05:04:49 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-07-22 11:54:30 -0700 |
commit | 359ff6938990a438b99e95fe36b6b359f3eb9811 (patch) | |
tree | 4203eb661be2b388947b38b8493c97fefa79fea8 /builtin/pull.c | |
parent | pull: abort by default when fast-forwarding is not possible (diff) | |
download | tgif-359ff6938990a438b99e95fe36b6b359f3eb9811.tar.xz |
pull: update docs & code for option compatibility with rebasing
git-pull.txt includes merge-options.txt, which is written assuming
merges will happen. git-pull has allowed rebases for many years; update
the documentation to reflect that.
While at it, pass any `--signoff` flag through to the rebase backend too
so that we don't have to document it as merge-specific. Rebase has
supported the --signoff flag for years now as well.
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pull.c')
-rw-r--r-- | builtin/pull.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/builtin/pull.c b/builtin/pull.c index 4514a1478e..2f1d1f4037 100644 --- a/builtin/pull.c +++ b/builtin/pull.c @@ -893,6 +893,8 @@ static int run_rebase(const struct object_id *newbase, strvec_pushv(&args, opt_strategy_opts.v); if (opt_gpg_sign) strvec_push(&args, opt_gpg_sign); + if (opt_signoff) + strvec_push(&args, opt_signoff); if (opt_autostash == 0) strvec_push(&args, "--no-autostash"); else if (opt_autostash == 1) |