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

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

From
TGThomas Glanzmann <sithglan@stud.uni-erlangen.de>
Date
May 4, 2005, 14:23 UTC
Message-ID
<20050504142351.GL18380@cip.informatik.uni-erlangen.de>

Hello, I edited a bunch of files and notice that I want to revert back one of the files to the original one (the one that comes with HEAD). But I already updated the cache. Is there a way to 'patch' the cache with the original file. Or do I need todo a read-tree into a temporary index file. Check out the one file from this alternate index file and use update-cache to update my original index file?

	Thomas [ who want's a "git revert" ]
Next: Linus Torvalds
Message 1 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.