diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-07-28 13:55:22 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-07-28 13:55:22 -0400 |
commit | 9ebc8bce16442e93bf56a6b7cb43f4a73fa214c5 (patch) | |
tree | b4e90eda56b4c2c37afd9aec96fc5f2a3711026f /diff-1-Add-color-support.patch | |
parent | 1e6e5a372e0b9f8aadc1aa1a24a380f4a1d9332e (diff) | |
download | freebsd-patches-9ebc8bce16442e93bf56a6b7cb43f4a73fa214c5.tar.gz freebsd-patches-9ebc8bce16442e93bf56a6b7cb43f4a73fa214c5.tar.zst freebsd-patches-9ebc8bce16442e93bf56a6b7cb43f4a73fa214c5.zip |
Update diff(1) --color patch take two
Diffstat (limited to 'diff-1-Add-color-support.patch')
-rw-r--r-- | diff-1-Add-color-support.patch | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/diff-1-Add-color-support.patch b/diff-1-Add-color-support.patch index da8838c..39d9451 100644 --- a/diff-1-Add-color-support.patch +++ b/diff-1-Add-color-support.patch @@ -1,14 +1,14 @@ -From 30124d753b8e95bc4180506b7cd9dfb3280ad364 Mon Sep 17 00:00:00 2001 +From 873c33e92f8a379c3f318f264b2f138658003530 Mon Sep 17 00:00:00 2001 From: Cameron Katri <me@cameronkatri.com> Date: Fri, 28 May 2021 15:21:45 -0400 Subject: [PATCH] diff(1): Add --color support --- usr.bin/diff/diff.1 | 17 ++++++++++ - usr.bin/diff/diff.c | 71 +++++++++++++++++++++++++++++++++++++++++- + usr.bin/diff/diff.c | 70 +++++++++++++++++++++++++++++++++++++++++- usr.bin/diff/diff.h | 3 +- usr.bin/diff/diffreg.c | 16 ++++++++++ - 4 files changed, 105 insertions(+), 2 deletions(-) + 4 files changed, 104 insertions(+), 2 deletions(-) diff --git a/usr.bin/diff/diff.1 b/usr.bin/diff/diff.1 index e0a790f6efb..50fd43902d5 100644 @@ -81,7 +81,7 @@ index e0a790f6efb..50fd43902d5 100644 Try very hard to produce a diff as small as possible. This may consume a lot of processing power and memory when processing diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c -index 1bad6226f49..b344e9c17cf 100644 +index 1bad6226f49..d9a732db768 100644 --- a/usr.bin/diff/diff.c +++ b/usr.bin/diff/diff.c @@ -38,11 +38,18 @@ __FBSDID("$FreeBSD$"); @@ -160,7 +160,7 @@ index 1bad6226f49..b344e9c17cf 100644 #ifdef __OpenBSD__ if (pledge("stdio rpath tmppath", NULL) == -1) err(2, "pledge"); -@@ -550,3 +578,44 @@ conflicting_format(void) +@@ -550,3 +578,43 @@ conflicting_format(void) fprintf(stderr, "error: conflicting output format options.\n"); usage(); } @@ -184,7 +184,6 @@ index 1bad6226f49..b344e9c17cf 100644 + else if (colorflag == COLORFLAG_NEVER) + ret = 0; + -+ printf("do_color(): %i\n", ret); + return ret; +} + |