Re: Some advanced index playing

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Chandler
Date: Sunday, December 3, 2006 - 1:11 pm

On Sunday 03 December 2006 18:24, Linus Torvalds wrote:
...

I don't quite understand this - maybe it should be

git ls-tree HEAD -- that-file | git update-index --index-info
git commit
git commit -a

either I want to ONLY commit that file at the working tree state (and index 
before these commands), or I want to commit ALL except this file (so I can 
later come and commit just that file)

so having reset the index to the state of HEAD for "that-file" then the commit 
should make a commit with all the other changes in the index (but NOT 
that-file) and then the git commit -a picks up "that-file"

-- 
Alan Chandler
http://www.chandlerfamily.org.uk
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Some advanced index playing, Alan Chandler, (Sun Dec 3, 10:01 am)
Re: Some advanced index playing, Linus Torvalds, (Sun Dec 3, 11:24 am)
Re: Some advanced index playing, Linus Torvalds, (Sun Dec 3, 11:34 am)
Re: Some advanced index playing, Junio C Hamano, (Sun Dec 3, 12:36 pm)
Re: Some advanced index playing, Alan Chandler, (Sun Dec 3, 1:11 pm)
Re: Some advanced index playing, Junio C Hamano, (Sun Dec 3, 1:26 pm)
Re: Some advanced index playing, Alan Chandler, (Sun Dec 3, 1:40 pm)
Re: Some advanced index playing, Linus Torvalds, (Sun Dec 3, 1:40 pm)
Re: Some advanced index playing, Junio C Hamano, (Mon Dec 4, 3:41 am)
[PATCH] git-explain, Junio C Hamano, (Mon Dec 4, 8:48 pm)
Re: [PATCH] git-explain, Nicolas Pitre, (Mon Dec 4, 8:55 pm)
Re: [PATCH] git-explain, J. Bruce Fields, (Mon Dec 4, 8:57 pm)
Re: [PATCH] git-explain, Junio C Hamano, (Mon Dec 4, 11:09 pm)
Re: [PATCH] git-explain, Jeff King, (Tue Dec 5, 12:26 am)
Re: [PATCH] git-explain, Johannes Schindelin, (Tue Dec 5, 1:58 am)
RE: [PATCH] git-explain, Raimund Bauer, (Tue Dec 5, 2:11 am)
Re: [PATCH] git-explain, Eric Wong, (Tue Dec 5, 2:21 am)
Re: [PATCH] git-explain , Horst H. von Brand, (Tue Dec 5, 10:34 am)
Re: [PATCH] git-explain, J. Bruce Fields, (Tue Dec 5, 2:00 pm)
[RFC/PATCH 0/5] WIP status/rerere reporting, Eric Wong, (Fri Dec 8, 3:49 am)
[PATCH 5/5] rerere: add the diff command, Eric Wong, (Fri Dec 8, 3:49 am)