git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Parkins <andyparkins@gmail.com>
To: git@vger.kernel.org
Cc: Junio C Hamano <junkio@cox.net>,
	"Shawn O. Pearce" <spearce@spearce.org>,
	Bill Lear <rael@zopyra.com>
Subject: Re: GIT v1.5.1-rc1
Date: Wed, 21 Mar 2007 16:07:18 +0000	[thread overview]
Message-ID: <200703211607.20361.andyparkins@gmail.com> (raw)
In-Reply-To: <7v648v5goy.fsf@assigned-by-dhcp.cox.net>

On Wednesday 2007 March 21 05:06, Junio C Hamano wrote:

> But I do not think "new to this repository" is the right thing
> to compute in the first place.  In a heavily topic-oriented
> development style, you may do something like this:

Unfortunately, I think it's the only thing that can sensibly be done.

Assume that we want every commit to appear on one, and only one email.  It's 
got to be done by only showing the new commits.

> However, after the topic cooks in 'next' and proves to be fine,
> the next push would go like this:
>
> 	$ git checkout master
>         $ git merge topic
>         $ git push $URL master
>
> There is no new commit that appeared in the repository with this
> push, and there will be no notification sent out, if you do "new
> to this repository".

Yes there is; the notification says that ref master was updated.  It wouldn't 
show any new commits - which is exactly right.  This to my mind is the same 
reason that fast-forward merges are better than all-merges-the-same.

The truth is that there were no new commits, so the email generator should 
show no new commits; however there was a ref change so it should show that.  
That's exactly what the current hook does.

The only fault in it, that I've yet to fix, is that it shows an empty log 
section; I eventually want the zero-new-commits case to be caught and a 
little description of why there are no new commits output instead.

> The latter is, however, far more significant event than the
> former, from the point of view of overall project history, both
> for a casual user who tracks only the primary integration branch
> and for a developer who is expected to fork his new work off of
> the primary integration branch.  Showing only new commits that
> appeared in the repository is absolutely the wrong thing to do.

I don't think so; either the merge generated a new commit, in which case that 
merge commit will be shown, or the merge didn't generate a new commit in 
which case the report of the branch change is all that is needed.

Note: none of your examples describe a case where an email of some sort is not 
generated.


Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com

  reply	other threads:[~2007-03-21 16:07 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-06  6:35 [PATCH] Make 'make' quieter while building git Shawn O. Pearce
2007-03-06  7:03 ` Junio C Hamano
2007-03-06  7:16   ` Shawn O. Pearce
2007-03-06  8:15     ` Junio C Hamano
2007-03-06  8:21       ` Shawn O. Pearce
2007-03-06 10:53     ` Short term release plans Junio C Hamano
2007-03-19 10:53       ` GIT v1.5.1-rc1 Junio C Hamano
2007-03-19 13:21         ` Bill Lear
2007-03-20  1:08           ` Junio C Hamano
2007-03-20  2:55             ` Shawn O. Pearce
2007-03-20  9:37               ` Andy Parkins
2007-03-20 14:42                 ` Shawn O. Pearce
2007-03-20 23:30                   ` Jakub Narebski
2007-03-21  5:06               ` Junio C Hamano
2007-03-21 16:07                 ` Andy Parkins [this message]
2007-03-19 14:13         ` Johannes Schindelin
2007-03-20  1:04           ` Junio C Hamano
2007-03-20  1:19             ` Johannes Schindelin
2007-03-06  9:16 ` [PATCH] Make 'make' quieter while building git Alex Riesen
2007-03-06 13:24   ` Johannes Schindelin
2007-03-06 13:37     ` Alex Riesen
2007-03-06 14:19       ` Johannes Schindelin
2007-03-06 23:02         ` Junio C Hamano
2007-03-06 23:11           ` Alex Riesen
2007-03-06 23:24             ` Shawn O. Pearce

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=200703211607.20361.andyparkins@gmail.com \
    --to=andyparkins@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=rael@zopyra.com \
    --cc=spearce@spearce.org \
    /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).