Using different comitter emails for different projects?
Vincent Ladeuil
v.ladeuil+lp at free.fr
Wed May 28 09:23:06 BST 2008
>>>>> "Staffan" == Staffan Gimåker <staffan at gimaker.se> writes:
Staffan> Hello list,
Staffan> I work on both open source projects and work-related projects from the same
Staffan> machine, and whilst commits on my open source projects should use my regular
Staffan> email, commits on work branches should use my job email instead.
Staffan> It was easy enough to edit branch.conf to override the default email setting,
Staffan> but this manual override isn't propagated when I branch. Alas I have to
Staffan> resort to manually editing branch.conf every time I make a branch where I
Staffan> don't want the default -- this is both tedious and error prone.
Staffan> Is there a better way? A way to propagate the email
Staffan> setting when branching, perhaps? Or a
Staffan> repository-level configuration that can be made?
If your projects are organized in different hierarchies, you may
use locations.conf like:
[/home/staffan/work]
email = staffan at work
[/home/staffan/floss]
email = staffan at floss
You also look at
http://doc.bazaar-vcs.org/bzr.dev/en/user-reference/bzr_man.html#configuration-settings
for the gory details.
Vincent
More information about the bazaar
mailing list