Re: git-feed-mail-list.sh

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

On Tue, 9 May 2006, David Woodhouse wrote:

Right. That first line (that starts with "commit") lists the commit ID, 
and if you say "--parents", the commit ID's of the parents will be 
appended.

So if you want to turn that into "Commit: <id>" and "Parent: <id>", you'll 
want to do something like this:

  git show --no-abbrev -C --patch-with-stat --pretty=fuller --parents $commit |
	sed '1 s/commit \([0-9a-f]*\)/Commit:     \1\nParent:    /'

which should look pretty (count the spaces to make sure it lines up 
right with the other fields).

(And if you ever want to report on merges, you'll want to change that a 
bit, but it should be reasonably close to the above)

		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)