From: Stephen Sinclair Date: Wed, 06 Feb 2008 22:13:12 GMT Subject: Re: command prompt script for current branch Message-ID: <9b3e2dc20802061413v5dbe349axe43a4af263e39878@mail.gmail.com> In-Reply-To: > > Attached is a script I quickly wrote up yesterday. Sometimes I've > > found I started working only to realize I was on the wrong branch. > > (Now that I'm accustomed to working with git, I make many small > > branches, so it happens.) > > First, it is much better to put such script inline, in the body of > your email. This makes commenting about script body much easier. > And if you have to attach it, for example because your mailer mangles > whitespace (which is not the case here), make sure that attachement > uses "text/plain", and if possible "inline" disposition, to better > _view_ the code without need to save it to temporary file. > > I would take an exeption and comment on your code, even though you > make it hard to do so. Thank you. Since there's already a solution for this in contrib, (didn't see it, sorry), I'll just take your recommendations on coding style for any future stuff I do. Steve