{"thread":{"id":"16824","subject":"[PATCH] git-commit: colored status when color.ui is set","startedAt":"2008-12-21T22:15:00Z","lastAt":"2008-12-21T22:15:00Z","messageCount":1,"participants":["Markus Heidelberg"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"98509","messageId":"200812212315.00740.markus.heidelberg@web.de","threadId":"16824","inReplyTo":null,"subject":"[PATCH] git-commit: colored status when color.ui is set","fromName":"Markus Heidelberg","fromEmail":"markus.heidelberg@web.de","sentAt":"2008-12-21T22:15:00Z","receivedAt":"2008-12-21T22:15:00Z","isPatch":true,"sender":{"key":"markus.heidelberg@web.de","avatar":"https://avatars.githubusercontent.com/u/6334512?v=4"},"body":"When using \"git commit\" and there was nothing to commit (the editor\nwasn't launched), the status output wasn't colored, even though color.ui\nwas set. Only when setting color.status it worked.\n\nSigned-off-by: Markus Heidelberg <markus.heidelberg@web.de>\n---\n builtin-commit.c |    3 +++\n 1 files changed, 3 insertions(+), 0 deletions(-)\n\ndiff --git a/builtin-commit.c b/builtin-commit.c\nindex ac88dc2..7cf227a 100644\n--- a/builtin-commit.c\n+++ b/builtin-commit.c\n@@ -948,6 +948,9 @@ int cmd_commit(int argc, const char **argv, const char *prefix)\n \n \tgit_config(git_commit_config, NULL);\n \n+\tif (wt_status_use_color == -1)\n+\t\twt_status_use_color = git_use_color_default;\n+\n \targc = parse_and_validate_options(argc, argv, builtin_commit_usage, prefix);\n \n \tindex_file = prepare_index(argc, argv, prefix);\n-- \n1.6.1.rc3.62.g7c0a2\n"}]}