aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-10-03 10:28:49 +0200
committerShawn O. Pearce <spearce@spearce.org>2008-10-10 09:33:21 -0700
commitf2df8a5bfb6b766b0362a2cb545d5226a268bf37 (patch)
tree259f822ba1333e17ead7b4c5b5d6f70644179198
parent5c91cb5d0dd06aa5574234a3d651098393adb4fa (diff)
downloadgit-f2df8a5bfb6b766b0362a2cb545d5226a268bf37.tar.gz
git-f2df8a5bfb6b766b0362a2cb545d5226a268bf37.tar.xz
git-gui: Show a round number of bytes of large untracked text files
If an untracked text file is selected, then its contents are displayed instead of a diff. If the file is large, then the following hint is inserted at the top: * Untracked file is 14774881 bytes. * Showing only first 131072 bytes. Why exactly 131072 bytes? With this patch it is 100000 bytes. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
-rw-r--r--lib/diff.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/diff.tcl b/lib/diff.tcl
index abe502d97..6e08704db 100644
--- a/lib/diff.tcl
+++ b/lib/diff.tcl
@@ -164,7 +164,7 @@ proc show_other_diff {path w m cont_info} {
# - Git won't give us the diff, there's nothing to compare to!
#
if {$m eq {_O}} {
- set max_sz [expr {128 * 1024}]
+ set max_sz 100000
set type unknown
if {[catch {
set type [file type $path]