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

Re: [PATCH] Allow updating the index from a pipe

From
Junio C Hamano <junkio@cox.net>
Date
Dec 10, 2005, 07:06 UTC
Message-ID
<7vbqzpxwg2.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0512100145500.25300@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
> In order to allow the index to be modified in simple ways without
> having a working tree, this adds an option to git-update-index which
> updates a single path with a mode of 100644 and reads the content from
> stdin.
I wonder ...

Could you do this with existing hash-object with update-index --cache-info (or --index-info) please? If you do not want a temporary file and prefer piping contents into a command, extending hash-object would be preferable.

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 2 of 3 in “Allow updating the index from a pipe”
  1. Allow updating the index from a pipeDaniel Barkalow, Dec 10, 2005
  2. Junio C HamanoDec 10, 2005
  3. Daniel BarkalowDec 10, 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.