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

Re: [PATCH] fix for incorrect index update

From
Junio C Hamano <gitster@pobox.com>
Date
May 10, 2009, 04:22 UTC
Message-ID
<7vskjd4mfh.fsf@alter.siamese.dyndns.org>
In-Reply-To
<alpine.DEB.2.00.0905091356070.21000@narbuckle.genericorp.net>
Dave O <cxreg@pobox.com> writes:
Show 5 quoted lines
> call_depth > 0 requires trees to be constructed from the files with
> conflicts, therefore the stages thusly must not be updated
>
> Signed-off-by: Dave Olszewski <cxreg@pobox.com>
> ---
Thanks.  I'd add:
	From: Dave Olszewski <cxreg@pobox.com>

at the beginning, so you would not be shown as "Dave O" in "git shortlog" and friends.

>  merge-recursive.c          |   11 +++--
>  t/t3031-merge-criscross.sh |   95 ++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 101 insertions(+), 5 deletions(-)
>  create mode 100644 t/t3031-merge-criscross.sh
> diff --git a/t/t3031-merge-criscross.sh b/t/t3031-merge-criscross.sh
> new file mode 100644
That should have been 100755 (I'll fix-up myself; no need to resend).
Show 27 quoted lines
> index 0000000..cbfd95b
> --- /dev/null
> +++ b/t/t3031-merge-criscross.sh
> @@ -0,0 +1,95 @@
> +#!/bin/sh
> +
> +test_description='merge-recursive backend test'
> +
> +. ./test-lib.sh
> +
> +#         A      <- create some files
> +#        / \
> +#       B   C    <- cause rename/delete conflicts between B and C
> +#      /     \
> +#     |\     /|
> +#     | D   E |
> +#     |  \ /  |
> +#     |   X   |
> +#     |  / \  |
> +#     | /   \ |
> +#     |/     \|
> +#     F       G  <- merge E into B, D into C
> +#      \     /
> +#       \   /
> +#        \ /
> +#         H      <- recursive merge crashes
> +#
Much nicer than Dscho's ;-)
Show 5 quoted lines
> +# initialize
> +test_expect_success 'setup repo with criss-cross history' '
> +	mkdir data &&
> +
> +	test_debug create a bunch of files &&

You inherited a bug from Dscho's patch, it seems. Have you tried running the test with debug option?

This could have been
	test_debug "echo create a bunch of files" &&
but I'd say we just make them into comments.
Previous: Dave ONext: Dave Olszewski
Message 2 of 3 in “fix for incorrect index update”
  1. fix for incorrect index updateDave O, May 9, 2009
  2. Junio C HamanoMay 10, 2009
  3. Dave OlszewskiMay 10, 2009

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.