On Tue, Feb 13, 2018 at 11:23 PM, Eric Sunshine wrote:
> On Mon, Feb 12, 2018 at 10:55 PM, Eric Sunshine
> wrote:
>> On Mon, Feb 12, 2018 at 8:41 PM, Stefan Beller wrote:
>>> + * Output the formatted string in the specified
On Mon, Feb 12, 2018 at 10:55 PM, Eric Sunshine wrote:
> On Mon, Feb 12, 2018 at 8:41 PM, Stefan Beller wrote:
>> + * Output the formatted string in the specified color (and then reset to
>> normal
>> + * color so subsequent output is uncolored).
On Mon, Feb 12, 2018 at 8:41 PM, Stefan Beller wrote:
> Add documentation explaining the functions in color.h.
> While at it, migrate the function `color_set` into grep.c,
> where the only callers are.
>
> Signed-off-by: Stefan Beller
> ---
> diff --git
Add documentation explaining the functions in color.h.
While at it, migrate the function `color_set` into grep.c,
where the only callers are.
Signed-off-by: Stefan Beller
---
* fixed commit message
* followed Jeffs/Erics advice and rewrote want_color()s doc once again.
On Mon, Feb 12, 2018 at 3:19 PM, Stefan Beller wrote:
> Add documentation explaining the functions in color.h.
> While at it, mark them extern and migrate the function `color_set`
> into grep.c, where the only callers are.
This re-roll no longer marks functions as 'extern',
Add documentation explaining the functions in color.h.
While at it, mark them extern and migrate the function `color_set`
into grep.c, where the only callers are.
Signed-off-by: Stefan Beller
---
* removed the extern keyword
* reworded the docs for want_color once again.
On Thu, Feb 08, 2018 at 05:26:33PM -0500, Eric Sunshine wrote:
> > I think the point is that "var" is a quad-state variable (yes, no, auto,
> > or "unknown") and we are converting to a boolean. This would probably be
> > a lot more clear if GIT_COLOR_* were all enum values and not #defines,
> >
On Thu, Feb 8, 2018 at 3:43 PM, Jeff King wrote:
> On Thu, Feb 08, 2018 at 12:15:46PM -0800, Stefan Beller wrote:
>> +/*
>> + * Resolve the constants as returned by git_config_colorbool()
>> + * (specifically "auto") to a boolean answer.
>> + */
>> +extern int want_color(int var);
On Thu, Feb 8, 2018 at 12:43 PM, Jeff King wrote:
> On Thu, Feb 08, 2018 at 12:15:46PM -0800, Stefan Beller wrote:
>
>> int color_fprintf(FILE *fp, const char *color, const char *fmt, ...)
>> {
>> va_list args;
>> diff --git a/color.h b/color.h
>> index
On Thu, Feb 08, 2018 at 12:15:46PM -0800, Stefan Beller wrote:
> int color_fprintf(FILE *fp, const char *color, const char *fmt, ...)
> {
> va_list args;
> diff --git a/color.h b/color.h
> index fd2b688dfb..8c7e6c41c2 100644
> --- a/color.h
> +++ b/color.h
> @@ -72,26 +72,50 @@ extern int
Add documentation explaining the functions in color.h.
While at it, mark them extern and migrate the function `color_set`
into grep.c, where the only callers are.
Signed-off-by: Stefan Beller
---
This used to be part of sb/blame-color, but I realized this is
not strictly
11 matches
Mail list logo