summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5c91cb5)
raw | patch | inline | side by side (parent: 5c91cb5)
author | Johannes Sixt <johannes.sixt@telecom.at> | |
Fri, 3 Oct 2008 08:28:49 +0000 (10:28 +0200) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Fri, 10 Oct 2008 16:33:21 +0000 (09:33 -0700) |
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>
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>
lib/diff.tcl | patch | blob | history |
diff --git a/lib/diff.tcl b/lib/diff.tcl
index abe502d97104cb62bed308b0f5025c9d014834fb..6e08704dbbcd331862393da3449b48d42a2a7b46 100644 (file)
--- a/lib/diff.tcl
+++ b/lib/diff.tcl
# - 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]