Code

Add a small patch-mode testing library
authorThomas Rast <trast@student.ethz.ch>
Thu, 13 Aug 2009 12:29:40 +0000 (14:29 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Aug 2009 19:40:09 +0000 (12:40 -0700)
commitb319ef70a94731a5c6f18d07a49d5dda3f06f5d3
tree36b20255ac7dd270f175fe438316ba8ec6e08cfe
parent8f0bef6df91c48d79f982bdb55f784ce445ba5b2
Add a small patch-mode testing library

The tests for {reset,commit,stash} -p will frequently have to set both
worktree and index states to known values, and verify that the outcome
(again both worktree and index) are what was expected.

Add a small helper library that lets us do these tasks more easily.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-patch-mode.sh [new file with mode: 0755]