Re: [PATCH v3 01/21] diff: move doc to diff.h and diffcore.h
- From
Heba Waly <heba.waly@gmail.com>
- Date
- Nov 14, 2019, 12:22 UTC
- Message-ID
- <CACg5j26dp4CsZWEhYEzWB=fei05WcvaKqk6B3iCFb72YNn=qug@mail.gmail.com>
- In-Reply-To
- <xmqqmud1ef1p.fsf@gitster-ct.c.googlers.com>
On Tue, Nov 12, 2019 at 8:20 PM Junio C Hamano <gitster@pobox.com> wrote:
Show 26 quoted lines
> > "Heba Waly via GitGitGadget" <gitgitgadget@gmail.com> writes: > > > From: Heba Waly <heba.waly@gmail.com> > > > > Move the documentation from Documentation/technical/api-diff.txt to both > > diff.h and diffcore.h as it's easier for the developers to find the usage > > information beside the code instead of looking for it in another doc file. > > > > Also documentation/technical/api-diff.txt is removed because the information > > it has is now redundant and it'll be hard to keep it up to date and > > synchronized with the documentation in the header files. > > > @@ -245,6 +370,7 @@ void diff_emit_submodule_error(struct diff_options *o, const char *err); > > void diff_emit_submodule_pipethrough(struct diff_options *o, > > const char *line, int len); > > > > +/* Output should be colored. */ > > I am not sure the comment belongs here. Especially if this was > lifted from the description for COLOR_DIFF. > > Those preprocessor constants have long been migrated to 1-bit > bitfields in the diff_flags structure and the documentation was left > stale---description on COLOR_DIFF and friends this patch removes from > the doc should be reused to explain these fields, I would think.
You're right, that comment was misplaced by mistake, it was supposed to be a member of the diff_options structure, but that member doesn't exist anymore, so I'll just remove this comment.
> Thanks.
Thanks, Heba