Re: [PATCH v3] graph API: Added logic for colored edges

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Sunday, April 12, 2009 - 11:45 am

Allan Caffee <allan.caffee@gmail.com> writes:


I expected to see something like 

	#define COLUMN_COLORS_MAX (ARRAY_SIZE(column_colors)+1)

	write_with_color(...) {
                if (c->color < COLUMN_COLORS_MAX)
                        add color prefix;
                add string
                if (c->color < COLUMN_COLORS_MAX)
                        add color suffix;
	}

instead, actually, and was a bit surprised with (-1).

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH v3] graph API: Added logic for colored edges, Junio C Hamano, (Sun Apr 12, 11:45 am)
[PATCH v4] graph API: Added logic for colored edges, Allan Caffee, (Sun Apr 12, 1:27 pm)
Re: [PATCH v4] graph API: Added logic for colored edges, Junio C Hamano, (Sun Apr 12, 2:59 pm)
[PATCH v5] graph API: Added logic for colored edges, Allan Caffee, (Mon Apr 13, 12:53 pm)