From: Jonathan Nieder <jrnieder@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Ramkumar Ramachandra <artagnon@gmail.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH 1/2] merge: Make '--log' an integer option for number of shortlog entries
Date: Tue, 31 Aug 2010 13:21:20 -0500 [thread overview]
Message-ID: <20100831182120.GR2315@burratino> (raw)
In-Reply-To: <7vzkw2abpz.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
> Hmm, do we plan on that? It sounds a little bit insane.
I sent an RFC patch with -1 as internal representation for "git grep
-Cinfinity". Infinity was the length Yaroslav was most interested in
for merge.log (not sure why, really).
Regardless, it's true that that would probably not be a detail to
expose.
> How about doing this on top?
[...]
> --- a/builtin/fmt-merge-msg.c
> +++ b/builtin/fmt-merge-msg.c
> @@ -322,7 +322,7 @@ int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix)
> const char *message = NULL;
> struct option options[] = {
> { OPTION_INTEGER, 0, "log", &shortlog_len, "n",
> - "populate log with <n> entries from shortlog",
> + "populate log with at most <n> entries from shortlog",
> PARSE_OPT_OPTARG, NULL, DEFAULT_MERGE_LOG_LEN },
> { OPTION_INTEGER, 0, "summary", &shortlog_len, "n",
> "alias for --log (deprecated)",
> @@ -350,7 +350,7 @@ int cmd_fmt_merge_msg(int argc, const char **argv, const char *prefix)
> return 0;
> }
> if (shortlog_len < 0)
> - shortlog_len = DEFAULT_MERGE_LOG_LEN;
> + die("Negative --log=%d???", shortlog_len);
Looks good to me (modulo punctuation :)).
next prev parent reply other threads:[~2010-08-31 18:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-28 10:35 [PATCH 0/3] rr/fmt-merge-msg replacements Ramkumar Ramachandra
2010-08-28 10:35 ` [PATCH] fmt-merge-msg: Disallow '--log', 'merge.log' < 0 Ramkumar Ramachandra
2010-08-28 10:35 ` [PATCH 2/3] t6200-fmt-merge-msg: Exercise 'merge.log' to configure shortlog length Ramkumar Ramachandra
2010-08-28 10:35 ` [PATCH 3/3] t6200-fmt-merge-msg: Exercise '--log' " Ramkumar Ramachandra
2010-08-31 3:53 ` [PATCH 1/2] merge: Make '--log' an integer option for number of shortlog entries Ramkumar Ramachandra
2010-08-31 14:32 ` Jonathan Nieder
2010-08-31 18:17 ` Junio C Hamano
2010-08-31 18:21 ` Jonathan Nieder [this message]
2010-08-31 19:13 ` Ramkumar Ramachandra
2010-08-31 19:53 ` Junio C Hamano
2010-09-01 4:22 ` Ramkumar Ramachandra
2010-08-31 3:53 ` [PATCH 2/2] merge: Make 'merge.log' an integer or boolean option Ramkumar Ramachandra
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=20100831182120.GR2315@burratino \
--to=jrnieder@gmail.com \
--cc=artagnon@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).