Teach new infrastructure to apply patches
authorKarl Hasselström <kha@treskal.com>
Mon, 28 Jan 2008 17:45:42 +0000 (18:45 +0100)
committerKarl Hasselström <kha@treskal.com>
Sun, 10 Feb 2008 14:46:38 +0000 (15:46 +0100)
commitd5d8a4f0b5609328027df9379282dddfbd2bbe58
tree70c17aef357876c4b4224ec5d5ba2c72bd0f199d
parent2057c23e53f033a4994eecfa004541f73f163e46
Teach new infrastructure to apply patches

Two new methods: one index method that applies a patch to that index
or fails without side-effects (without touching a worktree in either
case); and one repository method that uses a temp index to apply a
patch to a tree and returning the new tree (or None if the application
failed), entirely side-effect free.

Nothing uses this yet, but "stg edit" will soon.

Signed-off-by: Karl Hasselström <kha@treskal.com>
stgit/lib/git.py