Linux maintainer tooling and workflows
 help / color / mirror / Atom feed
From: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
To: Palmer Dabbelt <palmer@rivosinc.com>
Cc: tools@linux.kernel.org
Subject: Re: [PATCH] pr: Add --nostdin, to disable TTY detection
Date: Thu, 27 Oct 2022 12:57:23 -0400	[thread overview]
Message-ID: <20221027165723.cz32tduwdj7er6g7@meerkat.local> (raw)
In-Reply-To: <20221012230211.29402-1-palmer@rivosinc.com>

On Wed, Oct 12, 2022 at 04:02:11PM -0700, Palmer Dabbelt wrote:
> I'm running b4 from a bash script that does all sorts of wacky stuff to
> try and talk to the Yubikey, which causes "b4 pr" to think I'm trying to
> pass it message IDs from standard in when I'm actually trying to do some
> via positional arguments.  This adds a --nostdin command-line argument
> to turn off the automatic TTY-based detection and just force positional
> arguments.

I didn't take this patch directly, because I wanted to implement this on the
global level instead of just for PR (since we do TTY detection in multiple
places). The end-result is very similar to what you need, you just have to put
the flag before the subcommand, e.g.:

    b4 --no-stdin pr [...]

Thank you for the suggestion.

-K

      reply	other threads:[~2022-10-27 16:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-12 23:02 [PATCH] pr: Add --nostdin, to disable TTY detection Palmer Dabbelt
2022-10-27 16:57 ` Konstantin Ryabitsev [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=20221027165723.cz32tduwdj7er6g7@meerkat.local \
    --to=konstantin@linuxfoundation.org \
    --cc=palmer@rivosinc.com \
    --cc=tools@linux.kernel.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).