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

Re: [PATCH] test: pull: add test for disabling pull.ff=only

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Jul 12, 2021, 05:34 UTC
Message-ID
<60ebd47d9dc2f_a407e208f1@natae.notmuch>
In-Reply-To
<ef5ca2bf-3a7a-aa9e-40a2-6b1fe04e323e@gmail.com>
Bagas Sanjaya wrote:
Show 12 quoted lines
> On 12/07/21 00.07, Felipe Contreras wrote:
> > The advice clearly says it should be possible to override pull.ff=only
> > with --rebase:
> > 
> >    You can also pass --rebase, --no-rebase, or --ff-only on the command
> >    line to override the configured default per invocation.
> > 
> > Since the intended behavior of `git pull` is very easily forgotten let's
> > add a test to make sure it isn't.
> > 
> 
> Is pull.ff=only only do fast-forward merge when pulling?

Only when the pull is a merge pull (although there are proposals to change that).

Show 9 quoted lines
> > +test_expect_success 'pull allows non-fast-forward with "only" in pull.ff if --rebase' '
> > +	git reset --hard c1 &&
> > +	test_config pull.ff only &&
> > +	git pull --rebase . c3
> > +'
> > +
> 
> Better say 'pull allows non-fast-forward (using --rebase) regardless of 
> pull.ff=only config'

In English parentheses are used for stuff that isn't essential (i.e. optional).

If you remove what is inside the parenthesis the title loses the most important part, so I don't think that's an improvement.

Cheers.
-- 
Felipe Contreras
Previous: Bagas Sanjaya
Message 3 of 3 in “test: pull: add test for disabling pull.ff=only”
  1. test: pull: add test for disabling pull.ff=onlyFelipe Contreras, Jul 11, 2021
  2. Bagas SanjayaJul 12, 2021
  3. Felipe ContrerasJul 12, 2021

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.