Skip to content

Commit f2df8a5

Browse files
Johannes Sixtspearce
authored andcommitted
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 <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 5c91cb5 commit f2df8a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/diff.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ proc show_other_diff {path w m cont_info} {
164164
# - Git won't give us the diff, there's nothing to compare to!
165165
#
166166
if {$m eq {_O}} {
167-
set max_sz [expr {128 * 1024}]
167+
set max_sz 100000
168168
set type unknown
169169
if {[catch {
170170
set type [file type $path]

0 commit comments

Comments
 (0)