replace file size with line count for text files

Keep the number of line when writing text blobs and print it in the
index file tree instead of the size. Still print the size otherwise.
This commit is contained in:
Quentin Rameau
2016-01-10 00:47:22 +01:00
committed by Hiltjo Posthuma
parent 50dccf0e3b
commit 79fab7c6fa
2 changed files with 17 additions and 9 deletions

View File

@@ -1,2 +1,3 @@
/* See LICENSE file for copyright and license details. */
static const unsigned summarylen = 70; /* summary length in the log */
static const int showlinecount = 1; /* display line count or file size in file tree index */