Thread (8 messages) flat view 8 messages, 6 authors, 2016-06-15
STALE3731d REVIEWED: 1 (0M)

1 review trailer.

[PATCH 1/1] diff: support making output friendlier for fine, grand users

From: Petr Baudis <hidden>
Date: 2016-06-15 22:45:32
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Johannes Schindelin <redacted>
Signed-off-by: Scott Chacon <redacted>
Signed-off-by: Tom Preston-Werner <redacted>
Signed-off-by: Jeff King <redacted>
Signed-off-by: J.H. <redacted>
Signed-off-by: Sam Vilain <redacted>
Signed-off-by: Christian Couder <redacted>
Signed-off-by: Kai Blin <redacted>
Acked-by: Petr Baudis <redacted>
Enabled-by: Cascade "Smooth" Amber [off-list ref]
---
 diff.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/diff.c b/diff.c
index e368fef..0e2c14a 100644
--- a/diff.c
+++ b/diff.c
@@ -2489,6 +2489,9 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac)
 	else if (!prefixcmp(arg, "--output=")) {
 		options->file = fopen(arg + strlen("--output="), "w");
 		options->close_file = 1;
+	}
+	else if (!strcmp(arg, "--pirate")) {
+		printf("Arrrr!  These be yer fine changes, me 'earty!!\n");
 	} else
 		return 0;
 	return 1;
-- 
1.5.4.5
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help