git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Stephen Sinclair" <radarsat1@gmail.com>
To: "Jakub Narebski" <jnareb@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: command prompt script for current branch
Date: Wed, 6 Feb 2008 17:13:12 -0500	[thread overview]
Message-ID: <9b3e2dc20802061413v5dbe349axe43a4af263e39878@mail.gmail.com> (raw)
In-Reply-To: <m3r6fp4wrt.fsf@localhost.localdomain>

> > 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

  reply	other threads:[~2008-02-06 22:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-06 19:52 command prompt script for current branch Stephen Sinclair
2008-02-06 20:42 ` Junio C Hamano
2008-02-06 22:14   ` [PATCH (repost)] Improve bash prompt to detect merge / rebase in progress Robin Rosenberg
2008-02-06 22:23     ` Robin Rosenberg
2008-02-06 22:31     ` Junio C Hamano
2008-02-07  0:23       ` Robin Rosenberg
2008-02-07  6:34         ` Shawn O. Pearce
2008-02-08 11:26           ` Steffen Prohaska
2008-02-08 12:25             ` Johannes Schindelin
2008-02-08 13:12               ` Steffen Prohaska
2008-02-08 14:06                 ` [PATCH/RFC] Make git-completion.bash a first-class citizen Johannes Schindelin
2008-02-06 23:21     ` [PATCH (repost)] Improve bash prompt to detect merge / rebase in progress Jakub Narebski
2008-02-06 23:44       ` Mike Hommey
2008-02-06 21:09 ` command prompt script for current branch Jakub Narebski
2008-02-06 22:13   ` Stephen Sinclair [this message]
2008-02-06 22:56     ` Jakub Narebski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9b3e2dc20802061413v5dbe349axe43a4af263e39878@mail.gmail.com \
    --to=radarsat1@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).