commit | d002ef4d9446b9fe4d0c397131edce58781df2f1 | [log] [tgz] |
---|---|---|
author | Thomas Rast <trast@student.ethz.ch> | Sat Aug 15 13:48:31 2009 +0200 |
committer | Junio C Hamano <gitster@pobox.com> | Sat Aug 15 15:17:47 2009 -0700 |
tree | 50edd9828af40f2786937af4cd72b83c63b6ef14 | |
parent | 46b5139cae7306194a39fdaf5c6abc12ab531c84 [diff] |
Implement 'git reset --patch' This introduces a --patch mode for git-reset. The basic case is git reset --patch -- [files...] which acts as the opposite of 'git add --patch -- [files...]': it offers hunks for *un*staging. Advanced usage is git reset --patch <revision> -- [files...] which offers hunks from the diff between the index and <revision> for forward application to the index. (That is, the basic case is just <revision> = HEAD.) Signed-off-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>