···6363}
64646565proc handle_empty_diff {} {
6666- global current_diff_path file_states file_lists
6767- global diff_empty_count
6666+ global current_diff_path file_states
6767+ global ui_diff
68686969 set path $current_diff_path
7070 set s $file_states($path)
7171 if {[lindex $s 0] ne {_M} || [has_textconv $path]} return
72727373- # Prevent infinite rescan loops
7474- incr diff_empty_count
7575- if {$diff_empty_count > 1} return
7676-7777- info_popup [mc "No differences detected.
7878-7979-%s has no changes.
8080-8181-The modification date of this file was updated by another application, but the content within the file was not changed.
8282-8383-A rescan will be automatically started to find other files which may have the same state." [short_path $path]]
8484-8585- clear_diff
8686- display_file $path __
8787- rescan ui_ready 0
7373+ $ui_diff conf -state normal
7474+ $ui_diff insert end [mc "* No differences detected; stage the file to de-list it from Unstaged Changes.\n"] d_info
7575+ $ui_diff insert end [mc "* Click to find other files that may have the same state.\n"] d_rescan
7676+ $ui_diff conf -state disabled
8877}
89789079proc show_diff {path w {lno {}} {scroll_pos {}} {callback {}}} {
···387376 global ui_diff diff_active is_submodule_diff
388377 global is_3way_diff is_conflict_diff current_diff_header
389378 global current_diff_queue
390390- global diff_empty_count
391379392380 $ui_diff conf -state normal
393381 while {[gets $fd line] >= 0} {
···559547560548 if {[$ui_diff index end] eq {2.0}} {
561549 handle_empty_diff
562562- } else {
563563- set diff_empty_count 0
564550 }
565551566552 set callback [lindex $cont_info 1]