Created
October 29, 2008 15:44
-
-
Save schacon/20723 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Subject: [PATCH 1/1] diff: support making output friendlier for fine, grand users | |
Signed-off-by: Johannes Schindelin <[email protected]> | |
Signed-off-by: Scott Chacon <[email protected]> | |
Signed-off-by: Tom Preston-Werner <[email protected]> | |
Signed-off-by: Jeff King <[email protected]> | |
Signed-off-by: J.H. <[email protected]> | |
Signed-off-by: Sam Vilain <[email protected]> | |
Signed-off-by: Christian Couder <[email protected]> | |
Signed-off-by: Kai Blin <[email protected]> | |
Acked-by: Petr Baudis <[email protected]> | |
Enabled-by: Cascade "Smooth" Amber <[email protected]> | |
--- | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment