Andrei,
did you setup a different commit mailer for sip-router git repository than the one that we had for the ser git repository?
If so, do you think you could modify it to include the name of the branch in the subject of the message?
Jan.
On Nov 21, 2008 at 15:20, Jan Janak jan@iptel.org wrote:
Andrei,
did you setup a different commit mailer for sip-router git repository than the one that we had for the ser git repository?
No, it's the same as for ser, with --first-parent added to git rev-list.
If so, do you think you could modify it to include the name of the branch in the subject of the message?
Current format:
$subject = "git" . ":" . $repos_name . ": " . ${$info{"log"}}[0]
I think we could remove the repo_name, or replace it somehing shorter. My preffered format would be:
$subject = "git" . ":" . ${$info{"log"}}[0]$ . "(" . $ref ")"
(the most visible part == commit summary rather then branch).
What do you think?
BTW: I think I finally found out how to get mail only for the new commits (the --first-parent is an improvement, but with complicated commit trees it sometimes get confused and outputs too many commits):
git rev-parse --not --all| grep -v $new | git rev-list --stdin $new ^$old
I'll try to play with test a little, maybe I can fix the commit new branch part too.
Andrei
On 21-11 15:55, Andrei Pelinescu-Onciul wrote:
On Nov 21, 2008 at 15:20, Jan Janak jan@iptel.org wrote:
Andrei,
did you setup a different commit mailer for sip-router git repository than the one that we had for the ser git repository?
No, it's the same as for ser, with --first-parent added to git rev-list.
OK, my bad, I thought I added the branch name in the subject line, but it was the repository name in fact.
If so, do you think you could modify it to include the name of the branch in the subject of the message?
Current format:
$subject = "git" . ":" . $repos_name . ": " . ${$info{"log"}}[0]
I think we could remove the repo_name, or replace it somehing shorter. My preffered format would be:
$subject = "git" . ":" . ${$info{"log"}}[0]$ . "(" . $ref ")"
(the most visible part == commit summary rather then branch).
What do you think?
$subject = "git" . ":" . $ref . ":" . ${$info{"log"}}[0]$ . "(" . $ref ")"
This way we would replace the repository with the name of the branch.
Having the branch name in subject would be IMO very useful, because it would allow us to filter out commits specific for a particular branch, i.e. when I scan through the list of commit logs on the mailing list, I could easily filter out commits in andrei/* if I need.
BTW: I think I finally found out how to get mail only for the new commits (the --first-parent is an improvement, but with complicated commit trees it sometimes get confused and outputs too many commits):
git rev-parse --not --all| grep -v $new | git rev-list --stdin $new ^$old
I'll try to play with test a little, maybe I can fix the commit new branch part too.
OK, I agree.
Jan.
On Nov 21, 2008 at 16:10, Jan Janak jan@iptel.org wrote:
On 21-11 15:55, Andrei Pelinescu-Onciul wrote:
On Nov 21, 2008 at 15:20, Jan Janak jan@iptel.org wrote:
Andrei,
did you setup a different commit mailer for sip-router git repository than the one that we had for the ser git repository?
No, it's the same as for ser, with --first-parent added to git rev-list.
OK, my bad, I thought I added the branch name in the subject line, but it was the repository name in fact.
If so, do you think you could modify it to include the name of the branch in the subject of the message?
Current format:
$subject = "git" . ":" . $repos_name . ": " . ${$info{"log"}}[0]
I think we could remove the repo_name, or replace it somehing shorter. My preffered format would be:
$subject = "git" . ":" . ${$info{"log"}}[0]$ . "(" . $ref ")"
(the most visible part == commit summary rather then branch).
What do you think?
$subject = "git" . ":" . $ref . ":" . ${$info{"log"}}[0]$ . "(" . $ref ")"
This way we would replace the repository with the name of the branch.
Having the branch name in subject would be IMO very useful, because it would allow us to filter out commits specific for a particular branch, i.e. when I scan through the list of commit logs on the mailing list, I could easily filter out commits in andrei/* if I need.
Ok done:
for tags:
$subject = "git" . ":" . $ref . ": " . "Tag " . $info{"tag"} . ": " . ${$info{"log"}}[0];
for normal commits:
$subject = "git" . ":" . $ref . ": " . ${$info{"log"}}[0];
Andrei
On 21-11 16:15, Andrei Pelinescu-Onciul wrote:
On Nov 21, 2008 at 16:10, Jan Janak jan@iptel.org wrote:
On 21-11 15:55, Andrei Pelinescu-Onciul wrote:
On Nov 21, 2008 at 15:20, Jan Janak jan@iptel.org wrote:
Andrei,
did you setup a different commit mailer for sip-router git repository than the one that we had for the ser git repository?
No, it's the same as for ser, with --first-parent added to git rev-list.
OK, my bad, I thought I added the branch name in the subject line, but it was the repository name in fact.
If so, do you think you could modify it to include the name of the branch in the subject of the message?
Current format:
$subject = "git" . ":" . $repos_name . ": " . ${$info{"log"}}[0]
I think we could remove the repo_name, or replace it somehing shorter. My preffered format would be:
$subject = "git" . ":" . ${$info{"log"}}[0]$ . "(" . $ref ")"
(the most visible part == commit summary rather then branch).
What do you think?
$subject = "git" . ":" . $ref . ":" . ${$info{"log"}}[0]$ . "(" . $ref ")"
This way we would replace the repository with the name of the branch.
Having the branch name in subject would be IMO very useful, because it would allow us to filter out commits specific for a particular branch, i.e. when I scan through the list of commit logs on the mailing list, I could easily filter out commits in andrei/* if I need.
Ok done:
for tags:
$subject = "git" . ":" . $ref . ": " . "Tag " . $info{"tag"} . ": " . ${$info{"log"}}[0];
for normal commits:
$subject = "git" . ":" . $ref . ": " . ${$info{"log"}}[0];
Sounds good, thanks.
Jan.
On Nov 21, 2008 at 16:10, Jan Janak jan@iptel.org wrote:
[...]
BTW: I think I finally found out how to get mail only for the new commits (the --first-parent is an improvement, but with complicated commit trees it sometimes get confused and outputs too many commits):
git rev-parse --not --all| grep -v $new | git rev-list --stdin $new ^$old
I'll try to play with test a little, maybe I can fix the commit new branch part too.
OK, I agree.
New version installed: it should display commits only once (won't display commits already in some branch in the repo), it should also solve the one-commit-for-new-branch problem and you'll also see emails for deleted branches. It's a little more verbose (debugging) so don't worry if you see more text when you are pushing (but send it to me if you see an error message, or the mails don't show up properly).
Andrei