summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a50f9fc)
raw | patch | inline | side by side (parent: a50f9fc)
author | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Nov 2007 20:01:38 +0000 (12:01 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 23 Nov 2007 01:05:04 +0000 (17:05 -0800) |
Noticed by Ping Yin on the list.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | patch | blob | history | |
wt-status.h | patch | blob | history |
diff --git a/builtin-commit.c b/builtin-commit.c
index 5e2257c96101ff3d596aa898921ee96cb6d896cb..7616dd152fec439e7d8b8bdcb046b1837e2b68ee 100644 (file)
--- a/builtin-commit.c
+++ b/builtin-commit.c
static int prepare_log_message(const char *index_file, const char *prefix)
{
struct stat statbuf;
- int commitable;
+ int commitable, saved_color_setting;
struct strbuf sb;
char *buffer;
FILE *fp;
if (only_include_assumed)
fprintf(fp, "# %s\n", only_include_assumed);
+ saved_color_setting = wt_status_use_color;
+ wt_status_use_color = 0;
commitable = run_status(fp, index_file, prefix);
+ wt_status_use_color = saved_color_setting;
fclose(fp);
diff --git a/wt-status.h b/wt-status.h
index f58ebcbb23f214c1fea8f4cb8e10c3491b8e0469..225fb4d53561f4f1d6ad43fd990dda1c6da956f0 100644 (file)
--- a/wt-status.h
+++ b/wt-status.h
};
int git_status_config(const char *var, const char *value);
+int wt_status_use_color;
void wt_status_prepare(struct wt_status *s);
void wt_status_print(struct wt_status *s);