-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding an option to not state the branch name in the subject line #27
Comments
That patch should work, but it may be worth generalizing this a bit to make the subject generally configurable and then also replace the |
Your suggestion is a more elegant solution, Robin. Thank you. I will just need to make sure that none of these get expanded/mangled on And while we are at it, do you think ${head} is intuitive? won't ${branch} be clearer? And that's why I was asking whether there was potentially more to |
It's kind of the same, head is just the internal git terminology and technically a bit broader in meaning than branch (to me, at least :-). But I don't really mind. Note that it should be plural though: it can be more than one branch, git-notifier comma-separates them in that case. |
wrt, plural - I don't follow you on this one. While git-notifier can be configured to watch multiple branches, a single email is always about a single branch, so how can it be plural? |
No, a single email can refer to multiple branches. An email is per commit. If at the time git-notifier runs a new commit has become part of multiple branches already, the mail will show all corresponding heads. |
Thank you for explaining that, Robin, I thought an email only ever refers to a single branch. So |
Given, that my git-notifier setup is configured to report only on the
master
branch, it's redundant to addmaster
to every subject line, as it eats up valuable space. At the moment I removed that with:I think it might be useful to others as well as a feature. So perhaps git-notifier could have a new flag, something like:
-emailprefixincludebranch true/false
and exclude branch name iffalse
?I don't know enough about git-notifier's logic to know whether I'm not losing some other bits when I exclude
subject_head
. But otherwise it'd look something like:This is untested.
The text was updated successfully, but these errors were encountered: