From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Michal Vitecek <fuf@mageo.cz>
Cc: git@vger.kernel.org, Junio C Hamano <gitster@pobox.com>
Subject: Re: [PATCH] Don't use "<unknown>" for unknown values of placeholders and suppress printing of empty user formats.
Date: Tue, 25 Sep 2007 15:47:17 +0100 (BST) [thread overview]
Message-ID: <Pine.LNX.4.64.0709251543561.28395@racer.site> (raw)
In-Reply-To: <20070925143846.GQ22869@mageo.cz>
Hi,
On Tue, 25 Sep 2007, Michal Vitecek wrote:
> ---
>
> Sending the patch again in correct form (hopefully) as instructed by
> Johannes Schindelin. Sorry for the hassle.
Thanks.
> diff --git a/commit.c b/commit.c
> index 99f65ce..c9a1818 100644
> --- a/commit.c
> +++ b/commit.c
> @@ -917,9 +917,6 @@ long format_commit_message(const struct commit *commit, const void *format,
> }
> if (msg[i])
> table[IBODY].value = xstrdup(msg + i);
> - for (i = 0; i < ARRAY_SIZE(table); i++)
> - if (!table[i].value)
> - interp_set_entry(table, i, "<unknown>");
This may have warranted a description in the commit message a la
Instead of setting unknown entries to "<unknown>" in the
interp_table, we teach interpolate() to replace entries with
NULL values by the empty string.
> diff --git a/log-tree.c b/log-tree.c
> index a642371..79502f4 100644
> --- a/log-tree.c
> +++ b/log-tree.c
> @@ -175,14 +175,15 @@ void show_log(struct rev_info *opt, const char *sep)
> * - The pretty-printed commit lacks a newline at the end
> * of the buffer, but we do want to make sure that we
> * have a newline there. If the separator isn't already
> - * a newline, add an extra one.
> + * a newline, add an extra one and do the same for the
> + * user format as well.
Here are still spaces instead of tabs.
These are only minor details; I don't know if Junio wants to fix them
himself.
Ciao,
Dscho
next prev parent reply other threads:[~2007-09-25 14:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-25 14:38 [PATCH] Don't use "<unknown>" for unknown values of placeholders and suppress printing of empty user formats Michal Vitecek
2007-09-25 14:47 ` Johannes Schindelin [this message]
2007-09-26 0:43 ` Junio C Hamano
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=Pine.LNX.4.64.0709251543561.28395@racer.site \
--to=johannes.schindelin@gmx.de \
--cc=fuf@mageo.cz \
--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).