Add an --index option to "stg refresh"
authorPeter Oberndorfer <kumbayo84@arcor.de>
Tue, 8 Jan 2008 16:42:46 +0000 (17:42 +0100)
committerKarl Hasselström <kha@treskal.com>
Sun, 10 Feb 2008 14:46:37 +0000 (15:46 +0100)
commitc3a72ae18c57389495e88a3a97217c3138694232
treecebb678d41c18ddef52618f2d214b9fe5a513e98
parentdcbb2c6afa8be9112eefb7793e75dc19e1ad6992
Add an --index option to "stg refresh"

Add an --index option to "stg refresh" which takes the contents of the
index as the new commit.

This allows to stage only certain changes to a file by only adding the
desired parts to the index with git-gui, ugit, git add -i or another
tool that manipulates the index and then run stg refresh --index it.
Also allows removing a file from a patch by running git reset HEAD^ --
file_to_remove followed by a stg refresh --index.

Signed-off-by: Peter Oberndorfer <kumbayo84@arcor.de>
Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/commands/refresh.py
t/t2700-refresh.sh