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

Re: [PATCH] merge-recursive: leave unmerged entries in the index.

From
Junio C Hamano <junkio@cox.net>
Date
Dec 11, 2005, 09:42 UTC
Message-ID
<7v64pwnf5d.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20051211092531.GA4919@c165.ib.student.liu.se>
Fredrik Kuivinen <freku045@student.liu.se> writes:
Show 11 quoted lines
> It might be cleaner to use
>
> runProgram(['git-update-index', '-z', '--index-info'],
>            input="0 " + ("0" * 40) + "\t" + path + "\0" + \
>                  "%o %s %d\t%s\0" % (oMode, oSHA1, 1, path) + \
>                  "%o %s %d\t%s\0" % (aMode, aSHA1, 2, path) + \
>                  "%o %s %d\t%s\0" % (bMode, bSHA1, 3, path))
>
> here instead. With this code we will get an exception if
> git-update-index exits with an error code. It is also consistent with
> the rest of the code.

Thanks. I did not know how to feed the string through runProgram (well, I did not look close enough).

Previous: Fredrik Kuivinen
Message 3 of 3 in “merge-recursive: leave unmerged entries in the index.”
  1. merge-recursive: leave unmerged entries in the index.Junio C Hamano, Dec 11, 2005
  2. Fredrik KuivinenDec 11, 2005
  3. Junio C HamanoDec 11, 2005

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.