author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 04:20:17 +0000 (23:20 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 21 Jan 2007 07:54:23 +0000 (02:54 -0500) | ||
commit | 7d40edfa06adf7f31f787bb6379c1eb454242c19 | |
tree | 0cb2211883131baa8014e852bdd2df65594fd61c | tree | snapshot |
parent | de5f6d5d178a1c8113aaca34c8f6b3842732a741 | commit | diff |
git-gui: Refactor the revert (aka checkout-index) implementation.
We can revert any file which has a valid stage 0 (is not unmerged)
and which is has a working directory status of M or D. This vastly
simplifies our pattern matching on file status when building up the
list of files to perform a checkout-index against.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
We can revert any file which has a valid stage 0 (is not unmerged)
and which is has a working directory status of M or D. This vastly
simplifies our pattern matching on file status when building up the
list of files to perform a checkout-index against.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |