From: Marcus Karlsson <mk@acc.umu.se>
To: Zbigniew J??drzejewski-Szmek <zbyszek@in.waw.pl>
Cc: git@vger.kernel.org, gitster@pobox.com,
Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH v2] gitk: Show patch for initial commit
Date: Mon, 3 Oct 2011 08:33:59 +0200 [thread overview]
Message-ID: <20111003063359.GA11391@kennedy.acc.umu.se> (raw)
In-Reply-To: <4E878016.703@in.waw.pl>
On Sat, Oct 01, 2011 at 11:03:18PM +0200, Zbigniew J??drzejewski-Szmek wrote:
> [cc: Paul Mackerras]
>
> Hi,
> I think that the historical explanation that Junio gave could
> be used as a basis for a commit message:
>
> In early days, all projects managed by git (except for git itself) had the
> product of a fairly mature development history in their first commit, and
> it was deemed unnecessary clutter to show additions of these thousands of
> paths as a patch.
>
> "git log" learned to show the patch for the initial commit without requiring
> --root command line option at 0f03ca9 (config option log.showroot to show
> the diff of root commits, 2006-11-23).
>
> Teach gitk to respect log.showroot.
Absolutely, that would be a much better commit message. I'll wait and
see if there are more comments and then resubmit.
> Also the gitk should be mentioned in the man-page for git-config log.showroot.
> The current description of this option seems suboptimal because it explains
> how it used to be, which is not really relevant:
> log.showroot
> If true, the initial commit will be shown as a big creation event. This is
> equivalent to a diff against an empty tree. Tools like git-log(1) or git-
> whatchanged(1), which normally hide the root commit will now show it. True by
> default.
> This could be changed to:
> If true (the default), the root commit will be shown as a big creation
> event --- a diff against an empty tree. This diff can be very large for
> a project which was imported into git after some development history.
> If log.showroot is false tools like git-log(1), git-whatchanged(1), or
> gitk(1) will not display the added files.
I agree, but that feels like something that could be made into a
separate patch. Or should I include that too?
Marcus
next prev parent reply other threads:[~2011-10-03 6:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-01 19:05 [PATCH v2] gitk: Show patch for initial commit Marcus Karlsson
2011-10-01 21:03 ` Zbigniew Jędrzejewski-Szmek
2011-10-03 6:33 ` Marcus Karlsson [this message]
2011-10-03 17:44 ` 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=20111003063359.GA11391@kennedy.acc.umu.se \
--to=mk@acc.umu.se \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=paulus@samba.org \
--cc=zbyszek@in.waw.pl \
/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).