From: Mattijs Korpershoek <mkorpershoek@baylibre.com>
To: Matthieu Baerts <matttbe@kernel.org>
Cc: tools@linux.kernel.org
Subject: Re: b4 prep-perpatch-check-cmd conf via .b4-config
Date: Thu, 23 May 2024 11:58:12 +0200 [thread overview]
Message-ID: <87pltcyhmz.fsf@baylibre.com> (raw)
In-Reply-To: <da201b46-c653-45ea-bec2-5110c8116c8c@kernel.org>
Hi Matthieu,
Thank you for your reply.
On jeu., mai 23, 2024 at 11:45, Matthieu Baerts <matttbe@kernel.org> wrote:
> Hi Mattijs,
>
> On 23/05/2024 10:50, Mattijs Korpershoek wrote:
>
> (...)
>
>> I've noticed that v0.14+ contains the new b4 prep --check command.
>>
>> This can be customized via b4.prep-perpatch-check-cmd [1]
>> However, we cannot customize this via a project specific .b4-config [2]
>> file.
>
> Even if it is would be handy, this feature has been explicitly removed
> for security reasons:
>
> https://git.kernel.org/pub/scm/utils/b4/b4.git/commit/?id=a1360385
Ah indeed, I missed that. Seems like a sane reason to not allow this.
>
> There could be a solution similar to 'direnv' where a 'b4 allow' command
> would mark a version of '.b4-config' as trusted, e.g. by adding a
> checksum in the local git config and checking it before reading the
> config file?
Maybe that's a better idea.
Since you pointed using local git config, I actually gave this another
thought and I can solve my problem by using a project specific git config:
$ cd ~/work/upstream/u-boot
$ git config b4.prep-perpatch-check-cmd './scripts/checkpatch.pl -q --terse --no-summary --mailback --u-boot --showfile'
Thanks for pointing me in the right direction!
Mattijs
>
> Cheers,
> Matt
> --
> Sponsored by the NGI0 Core fund.
next prev parent reply other threads:[~2024-05-23 9:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-23 8:50 b4 prep-perpatch-check-cmd conf via .b4-config Mattijs Korpershoek
2024-05-23 9:45 ` Matthieu Baerts
2024-05-23 9:58 ` Mattijs Korpershoek [this message]
2024-05-23 12:25 ` Konstantin Ryabitsev
2024-05-23 12:30 ` Kernel.org Bugbot
2024-05-30 15:30 ` Kernel.org Bugbot
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=87pltcyhmz.fsf@baylibre.com \
--to=mkorpershoek@baylibre.com \
--cc=matttbe@kernel.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 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.