Re: git-feed-mail-list.sh

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linus Torvalds
Date: Monday, May 8, 2006 - 8:06 pm

On Mon, 8 May 2006, Junio C Hamano wrote:


NOTE! Please don't enable "merge.summary" if you ever merge from the 
upstream tree. That just looks ugly. Your merge messages will be just 
filled with crap that has nothing to do with your tree - and everything to 
do with all the _unrelated_ normal development that happened in the tree.

So in general, "merge.summary" makes sense only for trees that pull from 
downstreams, and never merge with anything upstream. My tree obviously 
does that for the kernel. Think of it as a "top-level maintainer" flag, 
although it works find also for sub-maintainers as long as they 
synchronize upwards _purely_ by being pulled from, not by pulling.

But if you want to get it for any random merges, you can always just do

	git log -11 --pretty=oneline ^$commit^ $commit^@ |
		sed 's/[0-9a-f]* // ; 11 s/.*/\.\.\./' 

which will show up to the ten first commits that were merged (and turn the 
eleventh one, if it exists, into "..." - that's a pretty disgusting trick 
to make it show when you left things out).

That "^$commit^ $commit^@" part is important. It may look like some 
deranged git smiley, but it does exactly what you want it to do: take all 
the parents of the commit, but ignore any commit reachable from the first 
one (the "mainline" of the person who did the commit).

The ^@ syntax is obviously pretty new, so it requires a modern git.

		Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git-feed-mail-list.sh, David Woodhouse, (Wed May 3, 10:48 am)
Re: git-feed-mail-list.sh, Junio C Hamano, (Wed May 3, 9:35 pm)
Re: git-feed-mail-list.sh, Junio C Hamano, (Wed May 3, 10:16 pm)
Re: git-feed-mail-list.sh, David Woodhouse, (Mon May 8, 4:44 pm)
Re: git-feed-mail-list.sh, Linus Torvalds, (Mon May 8, 5:19 pm)
Re: git-feed-mail-list.sh, David Woodhouse, (Mon May 8, 5:28 pm)
Re: git-feed-mail-list.sh, Junio C Hamano, (Mon May 8, 5:36 pm)
Re: git-feed-mail-list.sh, Linus Torvalds, (Mon May 8, 5:45 pm)
Re: git-feed-mail-list.sh, Bertrand Jacquin, (Mon May 8, 5:53 pm)
Re: git-feed-mail-list.sh, Bertrand Jacquin, (Mon May 8, 5:55 pm)
Re: git-feed-mail-list.sh, Junio C Hamano, (Mon May 8, 5:57 pm)
Re: git-feed-mail-list.sh, Bertrand Jacquin, (Mon May 8, 5:59 pm)
Re: git-feed-mail-list.sh, David Woodhouse, (Mon May 8, 6:01 pm)
Re: git-feed-mail-list.sh, Junio C Hamano, (Mon May 8, 6:03 pm)
Re: git-feed-mail-list.sh, Junio C Hamano, (Mon May 8, 6:05 pm)
Re: git-feed-mail-list.sh, Bertrand Jacquin, (Mon May 8, 6:09 pm)
Re: git-feed-mail-list.sh, David Woodhouse, (Mon May 8, 6:12 pm)
Re: git-feed-mail-list.sh, Linus Torvalds, (Mon May 8, 6:18 pm)
Re: git-feed-mail-list.sh, Linus Torvalds, (Mon May 8, 6:27 pm)
Re: git-feed-mail-list.sh, Junio C Hamano, (Mon May 8, 7:41 pm)
Re: git-feed-mail-list.sh, Linus Torvalds, (Mon May 8, 8:06 pm)
Re: git-feed-mail-list.sh, Junio C Hamano, (Tue May 9, 12:15 am)
Re: git-feed-mail-list.sh, Junio C Hamano, (Tue May 9, 12:32 am)
Re: git-feed-mail-list.sh, Martin Mares, (Wed May 10, 1:49 am)