]> git.ipfire.org Git - thirdparty/git.git/commit - wt-status.h
status: disable display of '#' comment prefix by default
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Fri, 6 Sep 2013 17:43:07 +0000 (19:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Sep 2013 20:33:18 +0000 (13:33 -0700)
commit2556b9962e7c0353d562b7bf70eed11d8f29d0b0
tree7f1e9ca52eac054c468bd7ab54e8be32940907a5
parent3ba7407b8b7b7a75f720641327207d6cfdb163a2
status: disable display of '#' comment prefix by default

Historically, "git status" needed to prefix each output line with '#' so
that the output could be added as comment to the commit message. This
prefix comment has no real purpose when "git status" is ran from the
command-line, and this may distract users from the real content.

Disable this prefix comment by default, and make it re-activable for
users needing backward compatibility with status.displayCommentPrefix.

Obviously, "git commit" ignores status.displayCommentPrefix and keeps the
comment unconditionnaly when writing to COMMIT_EDITMSG (but not when
writing to stdout for an error message or with --dry-run).

Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
builtin/commit.c
t/t3001-ls-files-others-exclude.sh
t/t7060-wtstatus.sh
t/t7508-status.sh
t/t7512-status-help.sh
wt-status.c
wt-status.h