Jeff King
c9bfb95348
want_color: automatically fallback to color.ui
...
All of the "do we want color" flags default to -1 to
indicate that we don't have any color configured. This value
is handled in one of two ways:
1. In porcelain, we check early on whether the value is
still -1 after reading the config, and set it to the
value of color.ui (which defaults to 0).
2. In plumbing, it stays untouched as -1, and want_color
defaults it to off.
This works fine, but means that every porcelain has to check
and reassign its color flag. Now that want_color gives us a
place to put this check in a single spot, we can do that,
simplifying the calling code.
Signed-off-by: Jeff King <peff@peff.net >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2011-08-19 15:51:38 -07:00
..
2011-05-16 16:47:10 -07:00
2011-06-10 11:52:15 -07:00
2011-03-09 23:52:57 -08:00
2011-05-09 15:27:50 -07:00
2011-08-19 15:51:38 -07:00
2011-03-09 23:52:57 -08:00
2011-06-20 14:27:36 -07:00
2011-08-17 10:39:47 -07:00
2011-08-16 12:41:12 -07:00
2011-03-09 23:52:57 -08:00
2011-05-31 12:00:27 -07:00
2011-08-19 15:51:38 -07:00
2011-08-19 15:51:37 -07:00
2010-11-15 09:56:51 -08:00
2011-04-03 12:32:51 -07:00
2011-02-03 12:28:15 -08:00
2011-03-22 14:29:07 -07:00
2011-08-19 15:51:38 -07:00
2011-08-16 12:41:12 -07:00
2011-05-29 23:51:22 -07:00
2011-06-08 17:21:08 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 11:43:27 -07:00
2011-06-19 14:46:39 -07:00
2011-08-19 15:51:38 -07:00
2011-05-09 11:58:19 -07:00
2011-08-16 11:23:26 -07:00
2011-05-31 12:00:27 -07:00
2011-08-19 15:51:38 -07:00
2011-04-05 09:30:36 -07:00
2011-05-18 14:37:46 -07:00
2011-07-25 10:50:11 -07:00
2011-05-26 14:13:38 -07:00
2011-04-15 10:13:52 -07:00
2010-11-24 15:55:19 -08:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-04-11 10:35:25 -07:00
2011-08-19 15:51:38 -07:00
2011-05-15 15:23:33 -07:00
2011-03-09 23:52:56 -08:00
2011-05-19 10:54:16 -07:00
2011-06-10 11:52:15 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2011-03-22 10:16:54 -07:00
2010-11-15 09:57:37 -08:00
2011-04-01 17:55:55 -07:00
2011-05-25 15:04:25 -07:00
2011-05-19 20:02:31 -07:00
2011-03-22 11:43:27 -07:00
2011-03-22 10:16:54 -07:00
2011-05-31 12:08:52 -07:00
2011-05-08 12:55:34 -07:00
2011-07-13 21:39:18 -07:00
2011-05-31 12:19:11 -07:00
2011-05-19 10:55:54 -07:00
2011-05-16 13:01:45 -07:00
2011-03-09 23:52:56 -08:00
2011-05-26 09:33:25 -07:00
2011-05-31 12:19:11 -07:00
2011-08-19 15:51:38 -07:00
2010-11-15 10:04:56 -08:00
2010-11-15 10:04:56 -08:00
2011-08-16 12:41:14 -07:00
2011-03-22 10:16:54 -07:00
2011-06-10 11:52:15 -07:00
2011-06-20 14:27:36 -07:00
2010-11-15 10:04:43 -08:00
2011-03-22 10:16:54 -07:00
2010-12-08 11:24:13 -08:00