Re: [PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-21 Thread Brandon Williams
On 06/21, Junio C Hamano wrote: > Brandon Williams writes: > > > I don't think this is strictly enforced. If you look at grep.h:197 the > > enum 'grep_source_type' has a trailing comma. > > OK, so we now know that at least since e1327023 ("grep: refactor the > concept of "grep source" into an o

Re: [PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-21 Thread Junio C Hamano
Brandon Williams writes: > I don't think this is strictly enforced. If you look at grep.h:197 the > enum 'grep_source_type' has a trailing comma. OK, so we now know that at least since e1327023 ("grep: refactor the concept of "grep source" into an object", 2012-02-02) we haven't heard from anyb

Re: [PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-21 Thread Stefan Beller
On Wed, Jun 21, 2017 at 2:43 PM, Junio C Hamano wrote: > Stefan Beller writes: > I looked through out code base and for enums this is actually strictly enforced, so I guess I have to play by the rules here as I do not want to be the first to deviate from an upheld standard. >>

Re: [PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-21 Thread Brandon Williams
On 06/21, Stefan Beller wrote: > On Wed, Jun 21, 2017 at 12:36 PM, Junio C Hamano wrote: > > Stefan Beller writes: > > > >> Signed-off-by: Stefan Beller > >> --- > >> diff.c | 22 +++--- > >> 1 file changed, 19 insertions(+), 3 deletions(-) > >> > >> diff --git a/diff.c b/diff.c

Re: [PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-21 Thread Junio C Hamano
Stefan Beller writes: >>> I looked through out code base and for enums this is >>> actually strictly enforced, so I guess I have to play >>> by the rules here as I do not want to be the first >>> to deviate from an upheld standard. >> >> You sound like you are trying to find an excuse "not to pla

Re: [PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-21 Thread Stefan Beller
On Wed, Jun 21, 2017 at 2:13 PM, Junio C Hamano wrote: > Stefan Beller writes: > +enum diff_symbol { + DIFF_SYMBOL_SEPARATOR, >>> >>> Drop the last comma from enum? >> >> I looked through out code base and for enums this is >> actually strictly enforced, so I guess I have to pl

Re: [PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-21 Thread Junio C Hamano
Stefan Beller writes: >>> >>> +enum diff_symbol { >>> + DIFF_SYMBOL_SEPARATOR, >> >> Drop the last comma from enum? > > I looked through out code base and for enums this is > actually strictly enforced, so I guess I have to play > by the rules here as I do not want to be the first > to deviat

Re: [PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-21 Thread Junio C Hamano
Stefan Beller writes: > This will be painful though as the next ~20 patches > add more symbols mostly at the end. > , maybe I need > to restructure that such that the last symbol stays the same > throughout the series. Thanks for that thought. Yes, this mostly-no-op one added in the first patch

Re: [PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-21 Thread Stefan Beller
On Wed, Jun 21, 2017 at 12:36 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> Signed-off-by: Stefan Beller >> --- >> diff.c | 22 +++--- >> 1 file changed, 19 insertions(+), 3 deletions(-) >> >> diff --git a/diff.c b/diff.c >> index 2f9722b382..89466018e5 100644 >> --- a/

Re: [PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-21 Thread Junio C Hamano
Stefan Beller writes: > Signed-off-by: Stefan Beller > --- > diff.c | 22 +++--- > 1 file changed, 19 insertions(+), 3 deletions(-) > > diff --git a/diff.c b/diff.c > index 2f9722b382..89466018e5 100644 > --- a/diff.c > +++ b/diff.c > @@ -559,6 +559,24 @@ static void emit_line(s

[PATCH 04/26] diff.c: introduce emit_diff_symbol

2017-06-19 Thread Stefan Beller
Signed-off-by: Stefan Beller --- diff.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/diff.c b/diff.c index 2f9722b382..89466018e5 100644 --- a/diff.c +++ b/diff.c @@ -559,6 +559,24 @@ static void emit_line(struct diff_options *o, const char *set, co