PBWebChanges: Allow discarding of hunks
commit7b6393570fb7385ce95a042102502ef8d8144aee
authorJohannes Gilger <heipei@hackvalue.de>
Fri, 29 May 2009 12:08:35 +0000 (29 14:08 +0200)
committerPieter de Bie <frimmirf+gitx@gmail.com>
Sat, 6 Jun 2009 16:20:30 +0000 (6 17:20 +0100)
tree44f22573f6025a8837f74dd8c78c781b7a58ccc0
parent76f1469f5219f3b79b33ee37d470f282e9771155
PBWebChanges: Allow discarding of hunks

This enables a "discard" button for unstaged hunks which simply gets rid of the
changes (by using "git apply --reverse").

To avoid repetition, the stageHunk method was split into a more generic
processHunk method. The "discard" functionality is called through
discardHunk.

The NSAlert shown when discarding can be bypassed by pressing "Alt"
while clicking the discard-button.

Signed-off-by: Johannes Gilger <heipei@hackvalue.de>
PBGitCommitController.h
PBGitCommitController.m
PBWebChangesController.m
html/views/commit/commit.css
html/views/commit/commit.js