about summary refs log tree commit diff stats
path: root/cgit.h
diff options
context:
space:
mode:
authorJohn Keeping2014-10-05 10:59:05 +0100
committerLukas Fleischer2014-12-13 12:38:42 +0100
commitddfaef6bb28e697491b25bff5a7b260d44ce6ccf (patch)
tree53a8bfe75e9f8250131fb2b38a346731ba5581cd /cgit.h
parentChange "ss" diff flag to an enum (diff)
downloadcgit-ddfaef6bb28e697491b25bff5a7b260d44ce6ccf.tar.gz
cgit-ddfaef6bb28e697491b25bff5a7b260d44ce6ccf.zip
ui-diff: add "stat only" diff type
This prints the diffstat but stops before printing (or generating) any
of the body of the diff.

No cgitrc option is added here so that we can wait to see how useful
this is before letting people set it as the default.

Suggested-by: Konstantin Ryabitsev <mricon@kernel.org>
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cgit.h b/cgit.h index 0eb5ed5..0c1585d 100644 --- a/cgit.h +++ b/cgit.h
@@ -53,7 +53,7 @@ typedef void (*filepair_fn)(struct diff_filepair *pair);
53typedef void (*linediff_fn)(char *line, int len); 53typedef void (*linediff_fn)(char *line, int len);
54 54
55typedef enum { 55typedef enum {
56 DIFF_UNIFIED, DIFF_SSDIFF 56 DIFF_UNIFIED, DIFF_SSDIFF, DIFF_STATONLY
57} diff_type; 57} diff_type;
58 58
59typedef enum { 59typedef enum {