From: Jonathan Nieder <jrnieder@gmail.com>
To: Ralf Thielow <ralf.thielow@gmail.com>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH] commit: make default of "cleanup" option configurable
Date: Wed, 9 Jan 2013 00:28:58 -0800 [thread overview]
Message-ID: <20130109082858.GG6503@elie.Belkin> (raw)
In-Reply-To: <CAN0XMO+t2gu9UKJFVXAxt91-hUUhMqqmMoop88KYp0vo3x6c_g@mail.gmail.com>
Ralf Thielow wrote:
> It's actually my own usecase :). The bugtracker I'm using is able
> to create relationships between issues and related commits. It
> expects that a part of the commit message contains the issue number
> in format "#<issueId>". So I need to use a cleanup mode different
> from "default" to keep the commentary. The mode I'd use is "whitespace",
> "verbatim" is also possible.
Hm, so "whitespace-when-editing" would be the ideal setting.
Would it be confusing if the '[commit] cleanup' setting only took
effect when launching an editor (and not with -F, -C, or -m)? My
first impression is that I'd like that behavior better, even though
it's harder to explain.
[...]
> When a user uses a script/importer which expects that the "default" option
> is used without setting it explicitly, and then the user changes the default,
> isn't it the users fault if that would break things?
Consider the following series of events.
1. My friend writes an importer that uses the "git commit" command.
I like it and start using it.
2. Another friend writes a blog post about the '[commit] cleanup'
setting. I like it and start using it.
3. I try to use the importer again.
4. Years later, I notice the commit messages are corrupted in the
imported history.
It's hard to assign blame. I guess it's my fault. ;)
[...]
> I'll add a sentence of my bugtracker example to it. I think many developers
> are using such a tool, so it'd makes sense.
Thanks, sounds good.
Regards,
Jonathan
next prev parent reply other threads:[~2013-01-09 8:29 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 [this message]
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
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=20130109082858.GG6503@elie.Belkin \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).