git-commit-vandalism/perl
Junio C Hamano b4c61ed6d3 Color support for "git-add -i"
This is mostly lifted from earlier series by Dan Zwell, but updated to
use "git config --get-color" and "git config --get-colorbool" to make it
simpler and more consistent with commands written in C.

A new configuration color.interactive variable is like color.diff and
color.status, and controls if "git-add -i" uses color.

A set of configuration variables, color.interactive.<slot>, are used to
define what color is used for the prompt, header, and help text.

For perl scripts, Git.pm provides $repo->get_color() method, which takes
the slot name and the default color, and returns the terminal escape
sequence to color the output text.  $repo->get_colorbool() method can be
used to check if color is set to be used for a given operation.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2007-12-05 17:57:11 -08:00
..
.gitignore Make perl/ build procedure ActiveState friendly. 2006-12-04 13:39:32 -08:00
Git.pm Color support for "git-add -i" 2007-12-05 17:57:11 -08:00
Makefile War on whitespace 2007-06-07 00:04:01 -07:00
Makefile.PL Install man3 manpages to $PREFIX/share/man/man3 even for site installs 2007-08-23 01:02:49 -07:00
private-Error.pm Assorted typo fixes 2007-02-03 21:49:54 -08:00