Re: Howto update a 'dirty' entry in the cache from the object database
- From
- Thomas 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