Guest User

Untitled

a guest
Feb 20th, 2018
288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. Subject: [PATCH 1/1] diff: support making output friendlier for fine, grand users
  2.  
  3. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  4. Signed-off-by: Scott Chacon <schacon@gmail.com>
  5. Signed-off-by: Tom Preston-Werner <tom@github.com>
  6. Signed-off-by: Jeff King <peff@peff.net>
  7. Signed-off-by: J.H. <warthog19@eaglescrag.net>
  8. Signed-off-by: Sam Vilain <sam@vilain.net>
  9. Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
  10. Signed-off-by: Kai Blin <kai@samba.org>
  11. Acked-by: Petr Baudis <pasky@suse.cz>
  12. Enabled-by: Cascade "Smooth" Amber <clarity@tiedhouse.com>
  13. ---
  14. diff.c | 3 +++
  15. 1 files changed, 3 insertions(+), 0 deletions(-)
  16.  
  17. diff --git a/diff.c b/diff.c
  18. index e368fef..0e2c14a 100644
  19. --- a/diff.c
  20. +++ b/diff.c
  21. @@ -2489,6 +2489,9 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac)
  22. else if (!prefixcmp(arg, "--output=")) {
  23. options->file = fopen(arg + strlen("--output="), "w");
  24. options->close_file = 1;
  25. + }
  26. + else if (!strcmp(arg, "--pirate")) {
  27. + printf("Arrrr! These be yer fine changes, me 'earty!!\n");
  28. } else
  29. return 0;
  30. return 1;
  31. --
  32. 1.5.4.5
Add Comment
Please, Sign In to add comment