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

Re: Howto update a 'dirty' entry in the cache from the object database

From
TGThomas Glanzmann <sithglan@stud.uni-erlangen.de>
Date
May 4, 2005, 19:20 UTC
Message-ID
<20050504192002.GH20994@cip.informatik.uni-erlangen.de>
In-Reply-To
<Pine.LNX.4.58.0505041014510.2328@ppc970.osdl.org>
Hello,
> 	# read a new index file with the HEAD information
> 	GIT_INDEX_FILE=tmp-index git-read-tree HEAD
> 	# check out just the one file you want to have
> 	GIT_INDEX_FILE=tmp-index git-checkout-cache -f filename
> 	# remove the now useless temporary index
> 	rm tmp-index
> 	# update your _real_ index file with the file information
> 	git-update-cache filename
thanks. That is exactly what I was looking for.
	Thomas
Previous: Junio C Hamano
Message 4 of 4 in “Howto update a 'dirty' entry in the cache from the object database”
  1. Thomas GlanzmannMay 4, 2005
  2. Linus TorvaldsMay 4, 2005
  3. Junio C HamanoMay 4, 2005
  4. Thomas GlanzmannMay 4, 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.