git-gui: Show a round number of bytes of large untracked text files
commitf2df8a5bfb6b766b0362a2cb545d5226a268bf37
authorJohannes Sixt <johannes.sixt@telecom.at>
Fri, 3 Oct 2008 08:28:49 +0000 (3 10:28 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Fri, 10 Oct 2008 16:33:21 +0000 (10 09:33 -0700)
tree259f822ba1333e17ead7b4c5b5d6f70644179198
parent5c91cb5d0dd06aa5574234a3d651098393adb4fa
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>
lib/diff.tcl