From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS2044 198.145.29.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5E8851F934 for ; Fri, 17 Sep 2021 00:48:21 +0000 (UTC) Received: by mail.kernel.org (Postfix) with ESMTPSA id 9C4EC61209 for ; Fri, 17 Sep 2021 00:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631839700; bh=MiVslwD4Fga+VqznbcQeHDbOIRcNgehvH/2vVrzAPkg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cRhb0VrdpWK6gwzFf9nBkq6KTeTMe9kVfVnNdRw9hnVJ7GDFZxtG1yNGHgKA+vG1Q NWXVZwPsWLeFFMacbykY7emp3q/cupKGrUZ/otozkGx92QAPFPEx8wOI7APP44YTDk k3HfRTi9hnhHaOTsF6/4fw+EDD0ir2+mxYBLNcJ62zdBNgzcbqZit9/01niG+9nSmN BvnQXfHDJuSCoEfhru2G99QR4pXX5P1LH393VN39evupBLdWLXQCXmg+/uylFCWV7y sa8UXG1neYsp17//iJ5Os2cteihM9XZSuXSFfZK2ZwbTGzZBwGodyWU1bWYWYirsTY 4W9huu15BEuZQ== Received: by mail-qk1-f177.google.com with SMTP id a10so12172891qka.12 for ; Thu, 16 Sep 2021 17:48:20 -0700 (PDT) X-Gm-Message-State: AOAM531iYBzJ2YcZpgjOEva6ccqAUbwDYiNhNLsCfHkuPSWtV3cUyv0c QlROGxrezCe+xRlsgdUN3HV7d4i8BkCCppYTo6Q= X-Google-Smtp-Source: ABdhPJwF1wcLULyxKeR3iMoyUy3w0uq2APoodu67Tl13Lb7+Dfo+9Yv6seHH1HRpHg86Gv/4tMr9OJ9qJ+uqNN/mJt8= X-Received: by 2002:a05:620a:1998:: with SMTP id bm24mr8271787qkb.444.1631839699787; Thu, 16 Sep 2021 17:48:19 -0700 (PDT) MIME-Version: 1.0 References: <20210916210902.GA28336@dcvr> <20210917002204.GA13112@dcvr> In-Reply-To: <20210917002204.GA13112@dcvr> From: Luis Chamberlain Date: Thu, 16 Sep 2021 17:48:08 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: lei import on epochs [was: make menuconfig interface for lei / grok-pull] To: Eric Wong Cc: meta@public-inbox.org Content-Type: text/plain; charset="UTF-8" List-Id: On Thu, Sep 16, 2021 at 5:22 PM Eric Wong wrote: > Since epochs expose the gittyness of lei, perhaps a limited form > of commitish-like ranges used by git would work: > > lei add-external --mirror $URL --epoch=0..9 > lei add-external --mirror $URL --epoch=5.. > lei add-external --mirror $URL --epoch=~2.. # like HEAD~2.. That looks sexy. I mentioned the query option so that I could end up displaying on 'make menuconfig' the epochs dynamically, it would be a script that wants the list of epochs, and I'd use this to dynamically populate kconfig. Dynamic population of kconfig is not a yet well understood thing, but I've figured out a way to do it :) > That only works for contiguous ranges, though; but I'm also > unsure if discontiguous ranges make sense to anyone. > > There's other syntaxes (e.g. (sed|Perl)-like), of course, > but I think git-like here would be most natural. > > Thoughts? I think the above would suffice for sure! Luis