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

Re: StGIT refreshes all added files - limitation of git-write-tree?

From
Junio C Hamano <junkio@cox.net>
Date
Feb 15, 2006, 06:20 UTC
Message-ID
<7vacctnnx4.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<1139978528.28292.41.camel@dv>
Pavel Roskin <proski@gnu.org> writes:
> Or maybe git-write-tree and other utilities could be changed to work on
> a copy of the index file?  I would prefer not to move the
> actual .git/index away, but to make a copy for the current "stg refresh"
> operation.
There is no need to change the core side.  
	GIT_INDEX_FILE=temporary-index git-write-tree

would do the job. See the current round of git-commit and how it handles "git commit --only these files" case.

Previous: Pavel RoskinNext: Pavel Roskin
Message 2 of 4 in “StGIT refreshes all added files - limitation of git-write-tree?”
  1. Pavel RoskinFeb 15, 2006
  2. Junio C HamanoFeb 15, 2006
  3. Pavel RoskinFeb 15, 2006
  4. Shawn PearceFeb 15, 2006

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.