Commit c2c21d460310824931b9c8e83fbc24dad4fd57f9

Stefan Sperling 2018-03-27T21:56:33

show 3 lines of context in file diffs

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/diff.c b/lib/diff.c
index f521723..8ebe9fe 100644
--- a/lib/diff.c
+++ b/lib/diff.c
@@ -124,6 +124,7 @@ got_diff_blob(struct got_blob_object *blob1, struct got_blob_object *blob2,
 	args.diff_format = D_UNIFIED;
 	args.label[0] = label1 ? label1 : idstr1;
 	args.label[1] = label2 ? label2 : idstr2;
+	args.diff_context = 3;
 
 	err = got_diffreg(&res, f1, f2, flags, &args, &ds, outfile);
 done: