Re: Restore a single file in the index back to HEAD

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Nguyen Thai Ngoc Duy
Date: Wednesday, November 1, 2006 - 2:09 am

On 11/1/06, Junio C Hamano <junkio@cox.net> wrote:

Then perhaps git-reset should do "co HEAD path" too if --index is not specified?
To sum up:
 - git reset HEAD path -> git checkout HEAD path
 - git reset --index HEAD path -> git-ls-files HEAD path|git
update-index --index-info
 - git reset HEAD (without path) -> the current behaviour

Because  <commit-ish>  may be missing, there is some ambiguation here.
-- 
Duy
-
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:
Restore a single file in the index back to HEAD, Andy Parkins, (Thu Oct 26, 8:41 am)
Re: Restore a single file in the index back to HEAD, Alex Riesen, (Thu Oct 26, 8:42 am)
Re: Restore a single file in the index back to HEAD, Andy Parkins, (Fri Oct 27, 12:27 am)
Re: Restore a single file in the index back to HEAD, Shawn Pearce, (Fri Oct 27, 12:38 am)
Re: Restore a single file in the index back to HEAD, Andy Parkins, (Fri Oct 27, 1:01 am)
Re: Restore a single file in the index back to HEAD, Andreas Ericsson, (Fri Oct 27, 1:08 am)
Re: Restore a single file in the index back to HEAD, Shawn Pearce, (Fri Oct 27, 1:15 am)
Re: Restore a single file in the index back to HEAD, Alex Riesen, (Fri Oct 27, 2:45 am)
Re: Restore a single file in the index back to HEAD, Andreas Ericsson, (Fri Oct 27, 2:50 am)
Re: Restore a single file in the index back to HEAD, Junio C Hamano, (Fri Oct 27, 3:02 am)
Re: Restore a single file in the index back to HEAD, Luben Tuikov, (Fri Oct 27, 10:45 am)
Re: Restore a single file in the index back to HEAD, Nguyen Thai Ngoc Duy, (Wed Nov 1, 12:58 am)
Re: Restore a single file in the index back to HEAD, Junio C Hamano, (Wed Nov 1, 1:07 am)
Re: Restore a single file in the index back to HEAD, Junio C Hamano, (Wed Nov 1, 1:34 am)
Re: Restore a single file in the index back to HEAD, Andy Parkins, (Wed Nov 1, 1:39 am)
Re: Restore a single file in the index back to HEAD, Junio C Hamano, (Wed Nov 1, 1:56 am)
Re: Restore a single file in the index back to HEAD, Nguyen Thai Ngoc Duy, (Wed Nov 1, 2:09 am)
Re: Restore a single file in the index back to HEAD, Andy Parkins, (Wed Nov 1, 2:53 am)