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

Re: [PATCH/RFC v2 2/2] git-am: add am.threeWay config variable

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 2, 2015, 14:13 UTC
Message-ID
<vpqmw0ijj0m.fsf@anie.imag.fr>
In-Reply-To
<1433251472-29460-2-git-send-email-remi.lespinet@ensimag.grenoble-inp.fr>
Remi Lespinet <remi.lespinet@ensimag.grenoble-inp.fr> writes:
Show 23 quoted lines
> Add the am.threeWay configuration variable to use the -3 or --3way
> option of git am by default. When am.threeway is set and not desired
> for a specific git am command, the --no-3way option can be used to
> override it.
>
> Signed-off-by: Remi Lespinet <remi.lespinet@ensimag.grenoble-inp.fr>
> ---
>  Documentation/config.txt |  7 +++++++
>  Documentation/git-am.txt |  6 ++++--
>  git-am.sh                |  7 +++++++
>  t/t4150-am.sh            | 19 +++++++++++++++++++
>  4 files changed, 37 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/config.txt b/Documentation/config.txt
> index d44bc85..8e42752 100644
> --- a/Documentation/config.txt
> +++ b/Documentation/config.txt
> @@ -769,6 +769,13 @@ am.keepcr::
>  	by giving '--no-keep-cr' from the command line.
>  	See linkgit:git-am[1], linkgit:git-mailsplit[1].
>  
> +am.threeWay::
> +	If true, git-am will fall back on 3-way merge when the patch

git-am should be spelled `git am` or 'git am' (the second is used a lot in git-am.txt, but Documentation/CodingGuidelines says:

 Literal examples (e.g. use of command-line options, command names, and
 configuration variables) are typeset in monospace, and if you can use
 `backticks around word phrases`, do so.
   `--pretty=oneline`
   `git rev-list`
   `remote.pushDefault`
) so I guess the first is the right way to typeset it.
FYI, the syntax git-am actually existed in the past (before git 1.6).
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Mikael Magnusson
Message 8 of 8 in “t4150-am: refactor am -3 tests”
  1. 1/2 t4150-am: refactor am -3 testsRemi Lespinet, Jun 2, 2015
  2. 2/2 git-am: add am.threeWay config variableRemi Lespinet, Jun 2, 2015
  3. Matthieu MoyJun 2, 2015
  4. 2/2 git-am: add am.threeWay config variableRemi LESPINET, Jun 2, 2015
  5. Eric SunshineJun 2, 2015
  6. Paul TanJun 2, 2015
  7. Mikael MagnussonJun 2, 2015
  8. Matthieu MoyJun 2, 2015

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.