From: "Mark Brown" <broonie@kernel.org>
To: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Cc: tools@linux.kernel.org
Subject: Re: b4 ty feature requests
Date: Fri, 17 Apr 2020 17:39:39 +0100 [thread overview]
Message-ID: <20200417163939.GH5315@sirena.org.uk> (raw)
In-Reply-To: <20200417161424.y6nlcm6pbavikwch@chatter.i7.local>
[-- Attachment #1: Type: text/plain, Size: 2078 bytes --]
On Fri, Apr 17, 2020 at 12:14:24PM -0400, Konstantin Ryabitsev wrote:
> On Fri, Apr 17, 2020 at 04:44:30PM +0100, Mark Brown wrote:
> > One thing that would be nice would be mechanism to supply some
> > additional values to be filled in the templates - I want to be able to
> > tell people what tree and branch I applied things to. A command line
> > option to set the templates might also work but would be clunkier for
> > me.
> Branch would be easy, e.g.:
> ---
> Applied to ${branch}, thanks!
> ---
> I'm not sure how to convey the tree information. Would it be a sane
> approach to try to use current dirname as default, overridable via a
> b4.thanks-tree-name value? E.g.:
> ---
> Applied to ${treename} ${branch} branch, thanks!
> ---
That wouldn't work well for me since I have a single repo with multiple
remotes - I'm invoking b4 as:
b4 ty -b remote/branch -a
so I'd need to switch out the config file to update the variable for the
tree name and the branch name would I think come out wrong. People
probably would mostly understand the short names I use for my remotes so
it wouldn't be the end of the world to just say ${branch} and have it
show up as remote/branch but I know inexperienced contributors sometimes
find figuring out exactly which tree you mean a bit confusing so the URL
is useful for them.
In that particular usage b4 could parse out the fact that it's a remote
based on asking git-remote if the thing before the first / is a remote
and use the info from that to rewrite such that the branch gets expanded
into a GIT URL plus branch but that may be a bit too much DWIM. You'd
get something like
b4 ty -b asoc/for-5.8 -a
with a template of
Applied to ${branch}
generating
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.8
TBH I'd personally be happy just specifying variables I name on the
command line (the actual b4 invocation is scripted for me) and that's
what I'd been imagining, although something more fancy would be very
nice.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 499 bytes --]
next prev parent reply other threads:[~2020-04-17 16:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-17 15:44 b4 ty feature requests Mark Brown
2020-04-17 16:14 ` Konstantin Ryabitsev
2020-04-17 16:39 ` Mark Brown [this message]
2020-04-17 16:55 ` Konstantin Ryabitsev
2020-04-17 17:09 ` Mark Brown
2020-04-17 19:06 ` Konstantin Ryabitsev
2020-04-20 15:46 ` Mark Brown
2020-04-20 17:03 ` Konstantin Ryabitsev
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=20200417163939.GH5315@sirena.org.uk \
--to=broonie@kernel.org \
--cc=konstantin@linuxfoundation.org \
--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