git-gui: Allow forcing display encoding for diffs using a submenu.
[gitweb.git] / lib / diff.tcl
index 8fefc5d9ae9cad3be93946b67f20bf82f09d0c89..b61629676f69a4bcb5c6a42af72e0c82a69cea73 100644 (file)
@@ -40,6 +40,15 @@ proc reshow_diff {} {
        }
 }
 
+proc force_diff_encoding {enc} {
+       global current_diff_path
+       
+       if {$current_diff_path ne {}} {
+               force_path_encoding $current_diff_path $enc
+               reshow_diff
+       }
+}
+
 proc handle_empty_diff {} {
        global current_diff_path file_states file_lists