diff options
author | Thomas Rast <trast@student.ethz.ch> | 2009-08-15 13:48:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-08-15 15:17:47 -0700 |
commit | d002ef4d9446b9fe4d0c397131edce58781df2f1 (patch) | |
tree | 50edd9828af40f2786937af4cd72b83c63b6ef14 /test-sigchain.c | |
parent | 46b5139cae7306194a39fdaf5c6abc12ab531c84 (diff) | |
download | git-d002ef4d9446b9fe4d0c397131edce58781df2f1.tar.gz |
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>
Diffstat (limited to 'test-sigchain.c')
0 files changed, 0 insertions, 0 deletions