Git development
 help / color / mirror / Atom feed
From: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>
To: GIT <git@vger.kernel.org>
Subject: Re: Howto update a 'dirty' entry in the cache from the object database
Date: Wed, 4 May 2005 21:20:02 +0200	[thread overview]
Message-ID: <20050504192002.GH20994@cip.informatik.uni-erlangen.de> (raw)
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

      parent reply	other threads:[~2005-05-04 19:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-04 14:23 Howto update a 'dirty' entry in the cache from the object database Thomas Glanzmann
2005-05-04 17:23 ` Linus Torvalds
2005-05-04 17:37   ` Junio C Hamano
2005-05-04 19:20   ` Thomas Glanzmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050504192002.GH20994@cip.informatik.uni-erlangen.de \
    --to=sithglan@stud.uni-erlangen.de \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox