author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 4 Sep 2007 03:07:59 +0000 (23:07 -0400) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 4 Sep 2007 03:07:59 +0000 (23:07 -0400) |
* maint:
git-gui: Properly set the state of "Stage/Unstage Hunk" action
git-gui: Fix detaching current branch during checkout
git-gui: Correct starting of git-remote to handle -w option
Conflicts:
git-gui.sh
git-gui: Properly set the state of "Stage/Unstage Hunk" action
git-gui: Fix detaching current branch during checkout
git-gui: Correct starting of git-remote to handle -w option
Conflicts:
git-gui.sh
1 | 2 | |||
---|---|---|---|---|
git-gui.sh | patch | | diff1 | | diff2 | | blob | history |
lib/checkout_op.tcl | patch | | diff1 | | diff2 | | blob | history |
diff --cc git-gui.sh
index 5635eeae360932b45bcf7fd44bad5ecbea010ef3,44977aa2124c034f3711548763cd6a69a2c52c77..b3d447e598019eefc3f3d27029b18017a934f724
--- 1/git-gui.sh
--- 2/git-gui.sh
+++ b/git-gui.sh
set ::cursorX $x
set ::cursorY $y
if {$::ui_index eq $::current_diff_side} {
- set s normal
- set l "Unstage Hunk From Commit"
+ set l [mc "Unstage Hunk From Commit"]
} else {
- if {$current_diff_path eq {}
- || ![info exists file_states($current_diff_path)]
- || {_O} eq [lindex $file_states($current_diff_path) 0]} {
- set s disabled
- } else {
- set s normal
- }
- set l "Stage Hunk For Commit"
+ set l [mc "Stage Hunk For Commit"]
}
- if {$::is_3way_diff} {
+ if {$::is_3way_diff
+ || $current_diff_path eq {}
+ || ![info exists file_states($current_diff_path)]
+ || {_O} eq [lindex $file_states($current_diff_path) 0]} {
set s disabled
+ } else {
+ set s normal
}
$ctxm entryconf $::ui_diff_applyhunk -state $s -label $l
tk_popup $ctxm $X $Y
diff --cc lib/checkout_op.tcl
Simple merge