git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: GIT v1.5.1-rc1

From
APAndy Parkins <andyparkins@gmail.com>
Date
Mar 21, 2007, 16:07 UTC
Message-ID
<200703211607.20361.andyparkins@gmail.com>
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.

Show 10 quoted lines
> 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.

Show 6 quoted lines
> 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
Previous: Junio C HamanoNext: Johannes Schindelin
Message 15 of 25 in “Make 'make' quieter while building git”
  1. Make 'make' quieter while building gitShawn O. Pearce, Mar 6, 2007
  2. Junio C HamanoMar 6, 2007
  3. Shawn O. PearceMar 6, 2007
  4. Junio C HamanoMar 6, 2007
  5. Shawn O. PearceMar 6, 2007
  6. Short term release plansJunio C Hamano, Mar 6, 2007
  7. GIT v1.5.1-rc1Junio C Hamano, Mar 19, 2007
  8. Bill LearMar 19, 2007
  9. Junio C HamanoMar 20, 2007
  10. Shawn O. PearceMar 20, 2007
  11. Andy ParkinsMar 20, 2007
  12. Shawn O. PearceMar 20, 2007
  13. Jakub NarebskiMar 20, 2007
  14. Junio C HamanoMar 21, 2007
  15. Andy ParkinsMar 21, 2007
  16. Johannes SchindelinMar 19, 2007
  17. Junio C HamanoMar 20, 2007
  18. Johannes SchindelinMar 20, 2007
  19. Alex RiesenMar 6, 2007
  20. Johannes SchindelinMar 6, 2007
  21. Alex RiesenMar 6, 2007
  22. Johannes SchindelinMar 6, 2007
  23. Junio C HamanoMar 6, 2007
  24. Alex RiesenMar 6, 2007
  25. Shawn O. PearceMar 6, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.