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

Re: [PATCH 3/4] mergetool: honor diff.orderFile

From
Johannes Sixt <j6t@kdbg.org>
Date
Oct 7, 2016, 17:08 UTC
Message-ID
<b75fce03-644b-cc27-a61a-aad5ab2d4b50@kdbg.org>
In-Reply-To
<1475797679-32712-3-git-send-email-davvid@gmail.com>
Am 07.10.2016 um 01:47 schrieb David Aguilar:
Show 32 quoted lines
> @@ -606,4 +606,37 @@ test_expect_success MKTEMP 'temporary filenames are used with mergetool.writeToT
>  	git reset --hard master >/dev/null 2>&1
>  '
>
> +test_expect_success 'diff.orderFile configuration is honored' '
> +	test_config diff.orderFile order-file &&
> +	test_config mergetool.myecho.cmd "echo \"\$LOCAL\"" &&
> +	test_config mergetool.myecho.trustExitCode true &&
> +	echo b >order-file &&
> +	echo a >>order-file &&
> +	git checkout -b order-file-start master &&
> +	echo start >a &&
> +	echo start >b &&
> +	git add a b &&
> +	git commit -m start &&
> +	git checkout -b order-file-side1 order-file-start &&
> +	echo side1 >a &&
> +	echo side1 >b &&
> +	git add a b &&
> +	git commit -m side1 &&
> +	git checkout -b order-file-side2 order-file-start &&
> +	echo side2 >a &&
> +	echo side2 >b &&
> +	git add a b &&
> +	git commit -m side2 &&
> +	test_must_fail git merge order-file-side1 &&
> +	cat >expect <<-\EOF &&
> +		Merging:
> +		b
> +		a
> +	EOF
> +	git mergetool --no-prompt --tool myecho | grep -A 2 Merging: >actual &&
Is grep -A universally available?
> +	test_cmp expect actual &&
> +	git reset --hard >/dev/null
> +'
> +'
Two single-quotes?
> +
>  test_done
>
Otherwise the patch looks good.
-- Hannes
Previous: David AguilarNext: David Aguilar
Message 5 of 7 in “mergetool: add copyright”
  1. 1/4 mergetool: add copyrightDavid Aguilar, Oct 6, 2016
  2. 2/4 mergetool: move main program flow into a main() functionDavid Aguilar, Oct 6, 2016
  3. Johannes SixtOct 7, 2016
  4. 3/4 mergetool: honor diff.orderFileDavid Aguilar, Oct 6, 2016
  5. Johannes SixtOct 7, 2016
  6. 4/4 mergetool: honor -O<order-file>David Aguilar, Oct 6, 2016
  7. Johannes SixtOct 7, 2016

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.