git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Petr Baudis <pasky@suse.cz>
Date
Oct 29, 2008, 05:23 UTC
Message-ID
<1225257832-29086-1-git-send-email-pasky@suse.cz>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Scott Chacon <schacon@gmail.com>
Signed-off-by: Tom Preston-Werner <tom@github.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: J.H. <warthog19@eaglescrag.net>
Signed-off-by: Sam Vilain <sam@vilain.net>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Kai Blin <kai@samba.org>
Acked-by: Petr Baudis <pasky@suse.cz>
Enabled-by: Cascade "Smooth" Amber <clarity@tiedhouse.com>
---
 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
Next: David Brown
Message 1 of 8 in “diff: support making output friendlier for fine, grand users”
  1. 1/1 diff: support making output friendlier for fine, grand usersPetr Baudis, Oct 29, 2008
  2. David BrownOct 29, 2008
  3. Johannes SchindelinOct 29, 2008
  4. increase git el1T3nEssJeff King, Oct 29, 2008
  5. Miklos VajnaOct 29, 2008
  6. Daniel BarkalowOct 29, 2008
  7. Jeff KingOct 29, 2008
  8. Petr BaudisOct 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.