Skip to content

Reject non-ff pulls by default

Felipe Contreras git 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest10 patches 2 repliesIn review
  2. v71 patch 9 repliesSuperseded

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10pull: refactor fast-forward checkbuiltin/pull.c+15 -110 replies
2/10pull: cleanup autostash checkbuiltin/pull.c+6 -90 replies
3/10pull: trivial cleanupbuiltin/pull.c+3 -40 replies
4/10pull: move default warningbuiltin/pull.c+22 -150 replies
5/10pull: display default warning only when non-ffbuiltin/pull.c t/t7601-merge-pull-config.sh+18 -120 replies
6/10test: pull-options: revert unnecessary changest/t5521-pull-options.sh+11 -110 replies
7/10rebase: add REBASE_DEFAULTbuiltin/pull.c rebase.h+10 -130 replies
8/10pull: add pull.modeDocumentation/config/branch.txt Documentation/config/pull.txt builtin/pull.c +5 more+151 -52 replies
9/10pull: add pull.mode=ff-onlyDocumentation/config/branch.txt Documentation/config/pull.txt builtin/pull.c +4 more+53 -50 replies
10/10pull: improve default warningDocumentation/git-pull.txt builtin/pull.c t/t5520-pull.sh +1 more+55 -500 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.

Read the v8 thread

Cover letter [PATCH v8 00/10] Reject non-ff pulls by default

This is an attempt to revive the old patch series [1].

Since v7 of the series the pull.mode configuration is added, and the warning has been updated to make use of that.

What is missing from the old series is:
* Add git pull --merge
* Actually change the default to ff-only

Cheers.

[1] https://lore.kernel.org/git/[email protected]/

Felipe Contreras (10):
pull: refactor fast-forward check
pull: cleanup autostash check
pull: trivial cleanup
pull: move default warning
pull: display default warning only when non-ff
test: pull-options: revert unnecessary changes
rebase: add REBASE_DEFAULT
pull: add pull.mode
pull: add pull.mode=ff-only
pull: improve default warning

 Documentation/config/branch.txt |   6 ++
 Documentation/config/pull.txt   |   6 ++
 Documentation/git-pull.txt      |  17 ++++
 builtin/pull.c                  | 146 ++++++++++++++++++++++----------
 builtin/remote.c                |  22 ++++-
 rebase.c                        |  12 +++
 rebase.h                        |  13 ++-
 t/t5520-pull.sh                 |  92 ++++++++++++++++++++
 t/t5521-pull-options.sh         |  22 ++---
 t/t7601-merge-pull-config.sh    |  49 ++++-------
 10 files changed, 297 insertions(+), 88 deletions(-)
Signature · 1 line
2.29.2