git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Can I checkout a single file without altering index?
@ 2010-10-12 10:03 Christian Halstrick
  2010-10-12 10:19 ` Michael J Gruber
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Christian Halstrick @ 2010-10-12 10:03 UTC (permalink / raw)
  To: git

Can I checkout a certain file to a specific revision without also adding this 
content to the index? I only want to alter the working-tree - no modification of 
index or HEAD needed.

Here is why I need that: I see a bug in git controlled sources. I fix one source
file and also add one unit test in a separate file. I checked that the test
succeeds with my fix. The index now contains what I want to commit.
Now I want to see whether my test fails without my fix. I want to checkout HEAD
for the source file without destroying my index. In the end, after I saw that my
test fails without my fix, I just want to say "git commit" without having to.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-10-15 23:43 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-12 10:03 Can I checkout a single file without altering index? Christian Halstrick
2010-10-12 10:19 ` Michael J Gruber
2010-10-12 11:14 ` Stefan Naewe
2010-10-13 17:09   ` Jared Hance
2010-10-12 15:39 ` Alex Riesen
2010-10-12 16:39   ` Tomas Carnecky
2010-10-14  8:03   ` Christian Halstrick
2010-10-15 18:30     ` Neal Kreitzinger
2010-10-15 18:43       ` Jonathan Nieder
2010-10-15 18:55         ` Jeff King
2010-10-15 19:32           ` Jonathan Nieder
2010-10-15 19:48             ` Jeff King
2010-10-15 18:57         ` Neal Kreitzinger
2010-10-15 19:02       ` Andreas Schwab
2010-10-15 23:22       ` Junio C Hamano
2010-10-15 23:40         ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).