aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xgit-gui.sh3
-rw-r--r--lib/diff.tcl26
2 files changed, 8 insertions, 21 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 8fe7538e72..887d6d596c 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1357,7 +1357,6 @@ set current_diff_path {}
set is_3way_diff 0
set is_submodule_diff 0
set is_conflict_diff 0
-set diff_empty_count 0
set last_revert {}
set last_revert_enc {}
@@ -3594,6 +3593,8 @@ $ui_diff tag configure clr1 -font font_diffbold
$ui_diff tag configure clr4 -underline 1
$ui_diff tag conf d_info -foreground blue -font font_diffbold
+$ui_diff tag conf d_rescan -foreground blue -underline 1 -font font_diffbold
+$ui_diff tag bind d_rescan <Button-1> { clear_diff; rescan ui_ready 0 }
$ui_diff tag conf d_cr -elide true
$ui_diff tag conf d_@ -font font_diffbold
diff --git a/lib/diff.tcl b/lib/diff.tcl
index 871ad488c2..d657bfec05 100644
--- a/lib/diff.tcl
+++ b/lib/diff.tcl
@@ -63,28 +63,17 @@ proc force_diff_encoding {enc} {
}
proc handle_empty_diff {} {
- global current_diff_path file_states file_lists
- global diff_empty_count
+ global current_diff_path file_states
+ global ui_diff
set path $current_diff_path
set s $file_states($path)
if {[lindex $s 0] ne {_M} || [has_textconv $path]} return
- # Prevent infinite rescan loops
- incr diff_empty_count
- if {$diff_empty_count > 1} return
-
- info_popup [mc "No differences detected.
-
-%s has no changes.
-
-The modification date of this file was updated by another application, but the content within the file was not changed.
-
-A rescan will be automatically started to find other files which may have the same state." [short_path $path]]
-
- clear_diff
- display_file $path __
- rescan ui_ready 0
+ $ui_diff conf -state normal
+ $ui_diff insert end [mc "* No differences detected; stage the file to de-list it from Unstaged Changes.\n"] d_info
+ $ui_diff insert end [mc "* Click to find other files that may have the same state.\n"] d_rescan
+ $ui_diff conf -state disabled
}
proc show_diff {path w {lno {}} {scroll_pos {}} {callback {}}} {
@@ -387,7 +376,6 @@ proc read_diff {fd conflict_size cont_info} {
global ui_diff diff_active is_submodule_diff
global is_3way_diff is_conflict_diff current_diff_header
global current_diff_queue
- global diff_empty_count
$ui_diff conf -state normal
while {[gets $fd line] >= 0} {
@@ -559,8 +547,6 @@ proc read_diff {fd conflict_size cont_info} {
if {[$ui_diff index end] eq {2.0}} {
handle_empty_diff
- } else {
- set diff_empty_count 0
}
set callback [lindex $cont_info 1]
ef='/linux/commit/net/mac80211/mlme.c?id=3f9768a5d262d01d317b2a03933db3d5082fcb68&follow=1'>mac80211: fix association beacon wait timeoutJohannes Berg1-2/+1 2012-04-06Make the "word-at-a-time" helper functions more commonly usableLinus Torvalds2-32/+49 2012-04-06net: fix a race in sock_queue_err_skb()Eric Dumazet1-1/+3 2012-04-06netlink: fix races after skb queueingEric Dumazet1-11/+13 2012-04-06doc, net: Update ndo_start_xmit return type and valuesBen Hutchings1-10/+12 2012-04-06doc, net: Remove instruction to set net_device::trans_startBen Hutchings1-5/+2 2012-04-06doc, net: Update netdev operation namesBen Hutchings2-14/+14 2012-04-06doc, net: Update documentation of synchronisation for TX multiqueueBen Hutchings1-3/+3 2012-04-06doc, net: Remove obsolete reference to dev->pollBen Hutchings1-2/+1 2012-04-06ethtool: Remove exception to the requirement of holding RTNL lockBen Hutchings1-2/+1 2012-04-06blackfin: update defconfig for bf527-ezkitBob Liu1-0/+1 2012-04-06blackfin: gpio: fix compile error if !CONFIG_GPIOLIBBob Liu1-2/+12 2012-04-06blackfin: fix L1 data A overflow link issueMike Frysinger1-1/+1 2012-04-05MAINTAINERS: update for Marvell Ethernet driversstephen hemminger1-12/+7 2012-04-05bonding: properly unset current_arp_slave on slave link upVeaceslav Falico1-1/+5 2012-04-05phonet: Check input from user before allocatingSasha Levin1-0/+3 2012-04-05tcp: tcp_sendpages() should call tcp_push() onceEric Dumazet4-6/+9 2012-04-05memcg swap: use mem_cgroup_uncharge_swap fixMichal Hocko1-7/+7 2012-04-05backlight: add driver for DA9052/53 PMIC v1Ashish Jangam3-0/+194 2012-04-05C6X: use set_current_blocked() and block_sigmask()Matt Fleming1-13/+3 2012-04-05MAINTAINERS: add entry for sparse checkerChristopher Li1-0/+9 2012-04-05MAINTAINERS: fix REMOTEPROC F: typoJoe Perches1-1/+1 2012-04-05alpha: use set_current_blocked() and block_sigmask()Matt Fleming1-21/+10 2012-04-05simple_open: automatically convert to simple_open()Stephen Boyd63-572/+176