Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-gui: Allow forcing display encoding for diffs using a submenu.
[gitweb.git]
/
lib
/
diff.tcl
diff --git
a/lib/diff.tcl
b/lib/diff.tcl
index 8fefc5d9ae9cad3be93946b67f20bf82f09d0c89..b61629676f69a4bcb5c6a42af72e0c82a69cea73 100644
(file)
--- a/
lib/diff.tcl
+++ b/
lib/diff.tcl
@@
-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