git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[RFC PATCH 0/2] Example of pull.mode

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Feb 28, 2023, 14:02 UTC
Message-ID
<20230228140236.4175835-1-felipe.contreras@gmail.com>

The discussions about the default mode of pull never end, since there's yet another discussion [1] about the relationship with pull.rebase=merges I'm sending a condensed version of my git update patches [2] which were not properly considered, but they solve the issue.

The two configurations in particular that are currently broken are:
    git config pull.mode merge
    git config pull.rebase merges
    git pull --rebase # same as --rebase=merges
And:
    git config pull.rebase true
    git pull --no-ff # no mode specified

These patches are *not* meant to be merged, they are just meant as reference for the new discussion.

I have the patches properly split and with tests, which I avoided here for the sake of simplicity.

[1] https://lore.kernel.org/git/pull.1474.git.1675614276549.gitgitgadget@gmail.com/ [2] https://lore.kernel.org/git/20210705123209.1808663-1-felipe.contreras@gmail.com/

Felipe Contreras (2):
  Add pull.mode
  pull: improve --rebase and pull.rebase interaction
 Documentation/config/branch.txt |   5 +
 Documentation/config/pull.txt   |   6 ++
 Documentation/git-pull.txt      |  15 +--
 builtin/pull.c                  | 157 ++++++++++++++++++++++----------
 rebase.c                        |  12 +++
 rebase.h                        |  13 ++-
 t/t7601-merge-pull-config.sh    |  30 +++---
 7 files changed, 166 insertions(+), 72 deletions(-)
-- 
2.39.2
Next: Felipe Contreras
Message 1 of 3 in “Example of pull.mode”
  1. 0/2 Example of pull.modeFelipe Contreras, Feb 28, 2023
  2. 1/2 Add pull.modeFelipe Contreras, Feb 28, 2023
  3. 2/2 pull: improve --rebase and pull.rebase interactionFelipe Contreras, Feb 28, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.