git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Ping Yin <pkufranky@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH v3 2/4] git-submodule: New subcommand 'summary' (2) - show commit summary
Date: Wed, 05 Mar 2008 15:57:36 -0800	[thread overview]
Message-ID: <7vk5kgiv0v.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <1204481710-29791-2-git-send-email-pkufranky@gmail.com> (Ping Yin's message of "Mon, 3 Mar 2008 02:15:08 +0800")

Ping Yin <pkufranky@gmail.com> writes:

> Example: commit summary for modified submodules sm1-sm5.
> --------------------------------------------
>  $ git submodule summary
>  # Submodules modifiled: sm1 sm2 sm3 sm4 sm5
>  #
>  # * sm1 354cd45...3f751e5:
>  #   <one line message for C
>  #   <one line message for B
>  #   >one line message for D
>  #   >one line message for E
> ...
> 	--A-->B-->C (in src:354cd45)
> 	  \
> 	   -->D-->E (in dst:3f751e5)

The ordering of the commits in the above list is (1) unnatural and (2)
does not match what you would see with "log --left-right --topo-order
C...E".

I do not think "it shows the path to move from C to E" justifies it.  If
you are showing them as a linear list (which you cannot avoid if you are
doing a sequence of one-line description), you cannot represent such a
"path" anyway (think "merge").  If an appliance project rebinds kernel/
path from a project based on linux-2.4 to linux-2.6 while upgrading, such
a "path" may not even exist.

I think I've already said the above to your initial round.  It is a bit
dissapointing to see none of the comments were addressed and makes me
wonder if I have wasted my time reviewing them again.

It also is unnerving that newly added and deleted submodule results in the
full history display.  It would be assuring to be able to see and verify
what the top commit is (or was in "deleted" case) while you are commiting,
but I do not see a reason to show more than that.

I do not think "then set the limit to 1" is a valid answer to that
concern.  Wanting to see a dozen top commits in each for a modified
submodule would be sensible (and 3/4 may implement such a limit) but even
then showing dozen top commits for new/deleted at the same time would be
just an added noise.  Is it really necessary to show more than the top for
new/deleted case?


  reply	other threads:[~2008-03-05 23:58 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-02 18:15 [PATCH v3 1/4] git-submodule: New subcommand 'summary' (1) - code framework Ping Yin
2008-03-02 18:15 ` [PATCH v3 2/4] git-submodule: New subcommand 'summary' (2) - show commit summary Ping Yin
2008-03-05 23:57   ` Junio C Hamano [this message]
2008-03-06  2:16     ` Ping Yin
2008-03-06  4:10       ` Junio C Hamano
2008-03-06  5:56         ` Ping Yin
2008-03-06 10:42           ` Junio C Hamano
2008-03-06 11:36             ` Ping Yin
2008-03-02 18:15 ` [PATCH v3 3/4] git-submodule: New subcommand 'summary' (3) - limit summary size Ping Yin
2008-03-06  0:24   ` Junio C Hamano
2008-03-06  2:24     ` Ping Yin
2008-03-07  1:50       ` Ping Yin
2008-03-02 18:15 ` [PATCH v3 4/4] git-submodule: New subcommand 'summary' (4) - Update the document Ping Yin

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=7vk5kgiv0v.fsf@gitster.siamese.dyndns.org \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=pkufranky@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).