git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Lehmann <Jens.Lehmann@web.de>
To: Ralf Thielow <ralf.thielow@gmail.com>
Cc: gitster@pobox.com, jrnieder@gmail.com, git@vger.kernel.org
Subject: Re: [PATCH v2] Allow custom "comment char"
Date: Wed, 16 Jan 2013 22:02:27 +0100	[thread overview]
Message-ID: <50F71563.20406@web.de> (raw)
In-Reply-To: <1358363928-16729-1-git-send-email-ralf.thielow@gmail.com>

Am 16.01.2013 20:18, schrieb Ralf Thielow:
> From: Junio C Hamano <gitster@pobox.com>
> 
> Some users do want to write a line that begin with a pound sign, #,
> in their commit log message.  Many tracking system recognise
> a token of #<bugid> form, for example.
> 
> The support we offer these use cases is not very friendly to the end
> users.  They have a choice between
> 
>  - Don't do it.  Avoid such a line by rewrapping or indenting; and
> 
>  - Use --cleanup=whitespace but remove all the hint lines we add.
> 
> Give them a way to set a custom comment char, e.g.
> 
>     $ git -c core.commentchar="%" commit
> 
> so that they do not have to do either of the two workarounds.
> 
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
> Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
> ---
> Junio, thanks for the code in your reply to the
> first version. It works very well and looks nice.
> I was also unhappy about this "\n%c\n" thing and
> pretty unsure with the code in "git-submodule.sh".

I can't see anything wrong with it (but didn't have the time to
test it). On my todo list (but *way* down) is the task to replace
the call to "git submodule summary --for-status ..." in
wt_status_print_submodule_summary() with a call to "git diff
--submodule" (and - at least in the long term - rip out the
--for-status option from the submodule script). Maybe now is a
good time for someone else to tackle that? (especially as the new
strbuf_commented_add*() functions should make that rather easy)

  parent reply	other threads:[~2013-01-16 21:02 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-08 20:16 [PATCH] commit: make default of "cleanup" option configurable Ralf Thielow
2013-01-08 21:18 ` Junio C Hamano
2013-01-09  7:29 ` Jonathan Nieder
2013-01-09  8:16   ` Ralf Thielow
2013-01-09  8:28     ` Jonathan Nieder
2013-01-09 15:40     ` Junio C Hamano
2013-01-09 15:56     ` Junio C Hamano
2013-01-10 19:37       ` Re* " Junio C Hamano
2013-01-15 18:50         ` [PATCH] Allow custom "comment char" Ralf Thielow
2013-01-15 19:12           ` Junio C Hamano
2013-01-16  6:23             ` Junio C Hamano
2013-01-16  8:17               ` Ralf Thielow
2013-01-16 19:18           ` [PATCH v2] " Ralf Thielow
2013-01-16 20:30             ` Junio C Hamano
2013-01-16 21:02             ` Jens Lehmann [this message]
2013-01-09 19:36 ` [PATCHv2] commit: make default of "cleanup" option configurable Ralf Thielow
2013-01-10  0:17   ` Junio C Hamano
2013-01-10 17:45   ` [PATCHv3] " Ralf Thielow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50F71563.20406@web.de \
    --to=jens.lehmann@web.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=jrnieder@gmail.com \
    --cc=ralf.thielow@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).