From: Jan Nieuwenhuizen <janneke-list@xs4all.nl>
To: Junio C Hamano <gitster@pobox.com>
Cc: Eric Wong <normalperson@yhbt.net>, Petr Baudis <pasky@suse.cz>,
git@vger.kernel.org
Subject: Re: [PATCH] git-svn.perl: Strip ChangeLog bits.
Date: Mon, 04 Aug 2008 10:07:57 +0200 [thread overview]
Message-ID: <1217837277.7649.24.camel@heerbeest> (raw)
In-Reply-To: <7vhca1u8to.fsf@gitster.siamese.dyndns.org>
On zo, 2008-08-03 at 13:45 -0700, Junio C Hamano wrote:
> Nice try, but after -rc1 we won't take feature enhancements on the
> 'master' branch. The earliest this will appear is in 1.6.1.
Ok, I'm not that familiar with git development and I did not find any
newer/UNRELEASED list of features?
> * Documentation; introduce this with heading --clean-changelog=<style>; I
Ok. I tried ={gnu} first, which seems to be the style for multiple
choice arguments, but the document parser does not grok that. {gnu|foo}
or {gnu|no-other-yet} did not really please me.
> You seem to have taken the "arbitrary Perl snippet" part of my patch as
> well, but it is not described here...
It all depends upon how you read the future. I would most have chosen
to postpone that work until the second (or third) request for different
munging came in, but now that the code is already written...
> * Script; two separate _clean_changelog and _clean_log_message variables
> are not necessary (I removed the extra variable in the patch below).
Good, I didn't really look at that.
> Your new tests do not seem to check these, but I think you should:
> - what should happen without --clean-changelog=gnu? (iow, additional
> code does not regress the behaviour when this shiny new toy is not
> used).
We could add a test to make sure that git-svn does not alter commit
messages, but it has little to do with this patch.
If this is not being tested atm, it is probably not deemed important
enough to test. This could have regressed at any time.
I would add a test for existing working code only if experience tells
you it is fragile and it (often) regresses, ie, when you fix a bug:
new/revised code.
> - what should happen when an unknown style is given e.g. --clean-changelog=yak?
It would be nice if the script failed with an error message, telling
what the options are, but I do not really care that much about wrong
use. You have that automatically if you use a sensible option parser,
this is where such a feature should be implemented, imho.
> We prefer to use "test_cmp" for comparing expected and actual result,
> not bare "cmp".
Ok.
> Here is what I tested and based the above comments on after minor fixes to
> ask comments from Eric.
Great, thanks. We'll see what happens then.
Jan.
--
Jan Nieuwenhuizen <janneke@gnu.org> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
next prev parent reply other threads:[~2008-08-04 8:09 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-02 13:42 [PATCH] git-svn.perl: Strip ChangeLog bits Jan Nieuwenhuizen
2008-08-02 17:27 ` Petr Baudis
2008-08-02 17:36 ` Junio C Hamano
2008-08-02 18:17 ` Jan Nieuwenhuizen
2008-08-02 21:13 ` Junio C Hamano
2008-08-03 12:07 ` Jan Nieuwenhuizen
2008-08-03 20:45 ` Junio C Hamano
2008-08-04 8:07 ` Jan Nieuwenhuizen [this message]
2008-08-04 2:09 ` Eric Wong
2008-08-04 2:45 ` Junio C Hamano
2008-08-04 7:49 ` Jan Nieuwenhuizen
2008-08-04 9:03 ` Eric Wong
2008-08-04 11:30 ` Jan Nieuwenhuizen
2008-08-02 18:21 ` Jan Nieuwenhuizen
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=1217837277.7649.24.camel@heerbeest \
--to=janneke-list@xs4all.nl \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=normalperson@yhbt.net \
--cc=pasky@suse.cz \
/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).