All of lore.kernel.org
 help / color / mirror / Atom feed
From: Justin Donnelly <justinrdonnelly@gmail.com>
To: Michiel Beijen <mb@x14.nl>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-prompt: GIT_PS1_SHOWCONFLICTSTATE variable fix
Date: Sun, 24 Mar 2024 15:01:08 -0400	[thread overview]
Message-ID: <CAGTqyRywBKNooLuswSF9QDGgnS2J+R2cArdYyShKw6=s59WxpA@mail.gmail.com> (raw)
In-Reply-To: <379141b4-d715-41b9-973f-ec0349ed11a5@x14.nl>

On Sun, Mar 24, 2024 at 1:18 PM Michiel Beijen <mb@x14.nl> wrote:
>
> On 19-03-2024 23:58, Justin Donnelly wrote:
>
> > Hi Michiel,
> > This is my code, so I'm really glad somebody else finds it useful!
> >
> >
> > On Tue, Mar 19, 2024 at 4:33 PM Michiel W. Beijen <mb@x14.nl> wrote:
> >> There are a few environment variables that can influence the output for
> >> the __git_ps1 macro in git-prompt.sh. All settings that are 'on/off'
> >> types such as GIT_PS1_SHOWUNTRACKEDFILES and GIT_PS1_SHOWDIRTYSTATE
> >> just take any value, and in the tests are tested with 'y', however
> >> GIT_PS1_SHOWCONFLICTSTATE must be set to 'yes' otherwise it will not
> >> work.
> > I had actually considered using set/unset (for the same reason as you
> > - consistency), but was advised to use a boolean flag.
> >
> > See: https://marc.info/?l=git&m=165897458021238&w=2 and
> > https://marc.info/?l=git&m=165903017715652&w=2
>
> I read the comments in that thread. While requiring the setting be set
> to 'yes' explicitly might make it possible to change it to a three-way
> switch in some unknown future, I think right now it is confusing and
> strange that of the many settings for GIT_PS1 only this one requires the
> explicit value 'yes'.
>
> So I would still request to consider this change.

It's not clear to me who besides Junio has the authority to approve
(i.e. who you have to convince). But it isn't me. You might want to CC
a few others (maybe use `git-contacts` to determine who) and see if
anyone is interested in discussing this. Good luck!

>
> --
>
> Michiel
>

      reply	other threads:[~2024-03-24 19:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19 20:32 [PATCH] git-prompt: GIT_PS1_SHOWCONFLICTSTATE variable fix Michiel W. Beijen
2024-03-19 22:58 ` Justin Donnelly
2024-03-24 17:18   ` Michiel Beijen
2024-03-24 19:01     ` Justin Donnelly [this message]

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='CAGTqyRywBKNooLuswSF9QDGgnS2J+R2cArdYyShKw6=s59WxpA@mail.gmail.com' \
    --to=justinrdonnelly@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=mb@x14.nl \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.