public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Jonathan Nieder <jrnieder@gmail•com>
To: Heikki Hokkanen <hoxu@users•sf.net>
Cc: Johannes Sixt <j6t@kdbg•org>, git@vger•kernel.org, szeder@ira•uka.de
Subject: Re: [PATCH] bash prompt: add option to disable for a repository
Date: Mon, 25 Nov 2013 15:43:44 -0800	[thread overview]
Message-ID: <20131125234344.GA4212@google.com> (raw)
In-Reply-To: <CAOpY_XvN9GJw592MpbcZZ2hzUvSvTHNLebwMmQBK+N-Ez4xM_Q@mail.gmail.com>

Heikki Hokkanen wrote:

> If running git config on each prompt seems too expensive, do you have
> any better ideas?

Perhaps a GIT_PS1_NOT_FOR_THESE_REPOS=repo1:repo2:repo3 setting would
work.

__git_ps1 would do the one 'git rev-parse --git-dir --...' to find the
repo corresponding to the cwd and then could match against the
configured list to decide whether to return early.

Hope that helps,
Jonathan

  reply	other threads:[~2013-11-25 23:43 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-23 13:18 [PATCH] bash prompt: add option to disable for a repository Heikki Hokkanen
2013-11-23 14:42 ` Johannes Sixt
2013-11-23 16:31   ` Heikki Hokkanen
2013-11-25 23:43     ` Jonathan Nieder [this message]
2013-11-26  0:26       ` SZEDER Gábor
2013-11-26  7:01       ` Johannes Sixt
2013-11-26  8:40     ` Thomas Rast
2013-11-23 16:35 ` SZEDER Gábor
2013-11-25 16:38   ` Heikki Hokkanen

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=20131125234344.GA4212@google.com \
    --to=jrnieder@gmail$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    --cc=hoxu@users$(echo .)sf.net \
    --cc=j6t@kdbg$(echo .)org \
    --cc=szeder@ira$(echo .)uka.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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