From: Wincent Colaiuta Date: Sun, 02 Sep 2007 09:43:56 GMT Subject: Re: [PATCH] send-email: Add support for SSL and SMTP-AUTH Message-ID: <3533A53F-9120-4151-A9E7-C23CB1C84E1B@wincent.com> In-Reply-To: <7vveatpklg.fsf@gitster.siamese.dyndns.org> El 2/9/2007, a las 9:55, Junio C Hamano escribió: > So it might be better to split the configuration variables in this > way: > > (1) in ~/.gitconfig (that is hopefully readable only by the > user): > > [sendemail "default"] > server = mail.isp.com > user = junkio > pass = junkio-password-for-mail-isp-com > > [sendemail "git"] > server = mail.git.xz > user = gitster > pass = gitster-password-for-mail-git.xz > > This defines two "mail identities" I could use, depending > on which project's repository I run send-email. > > (2) in project/.git/config: > > [sendemail] > identity = git > > This defines which "mail identity" I want to use for this > particular project. > > This way, you can maintain more than one identity by having > multiple [sendemail "$identity"] sections in ~/.gitconfig, and > avoid having to expose and duplicate user/pass in various > project's .git/config. Sounds like a good plan. Wincent