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: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-5.2 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, LIST_MIRROR_RECEIVED,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id A08251F670 for ; Fri, 18 Feb 2022 02:50:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231663AbiBRCti (ORCPT ); Thu, 17 Feb 2022 21:49:38 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:36092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231656AbiBRCth (ORCPT ); Thu, 17 Feb 2022 21:49:37 -0500 Received: from mail-pg1-x549.google.com (mail-pg1-x549.google.com [IPv6:2607:f8b0:4864:20::549]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BAD23FDAE for ; Thu, 17 Feb 2022 18:49:22 -0800 (PST) Received: by mail-pg1-x549.google.com with SMTP id k13-20020a65434d000000b00342d8eb46b4so3960015pgq.23 for ; Thu, 17 Feb 2022 18:49:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to; bh=hxBzXoExqempkiHIEZ5FGjftmMKXhwL2kyUkRdaSw8E=; b=er9KxPUCVWTASPfZVvYr6lqoWfZK0JeWbFlxJ44/pjxfS1T4O3p1BL+CyM/JXgAQZw Ejb+R1894WBjzcmcQM1YXSEr0WQtphaTtujVij80jAyQ8Xtk8P2i/2HboGdQL4P9lz+Y S/+pBB2iJ1DqbcqohiaerMy6S16DVBIG066Bp2QA+vtnQalZYqXEAlfs2igJeinNj5YB FmLRKY2ynYV7yEUAXUseuVUxUJHXh8koDO1csWxEive+KmGiypMYwaIFsQdXEK1Fmlp2 VbKElfOMa2wGFN0smreXS9FGKy4HhuAMg/SfIYla1DjE+/U8famrsE1yfOYWetzpOXS1 CP9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to; bh=hxBzXoExqempkiHIEZ5FGjftmMKXhwL2kyUkRdaSw8E=; b=dOl1pArJEEtvKAQyrS/REl6tsP8RhZec4SBL7bLazwvb3lc9MSjdN1R2nJElt1lpC7 Kj4TKXdF6sW7x5MHU5p7o92oAdsofJBYjirW2FwOGv+Ekr0eVqndWQ6RqW8oV6BfUkIf ekHXchLXc8ptM56cTRO8oDt6XqeE0v4HtQ+pdGYrtVXq7yIMRcyLLqHcC7XEOLg4uS1F /OsEn3LS0GpdAeXGZQQrSgFla/BajGByzxMFnHTmJ12heg1bkUdLMLwCYokOrW7He0J5 KN8eiz3bIIHh9LtwrOC8bwwpvyYIjGaRvpiSVmiWYEscJn8yrR41GhYX0cOHKYdXu1yA DxiA== X-Gm-Message-State: AOAM532EPxnXvxzjxXXhcm6zX0JtNsE84FsXlCty0gP/NYZROcADYZO2 M0lf7v6UwdQLMXsesC+Y0LC3+MOtMMt8+g== X-Google-Smtp-Source: ABdhPJwo3lMcjDVdXspsdwORBmtb5NlT7QnC5Ffqwa8cC4DQT+chEDJB6/c8dzeXz/7YAFCA9u5RTgk4XV9xgA== X-Received: from chooglen.c.googlers.com ([fda3:e722:ac3:cc00:24:72f4:c0a8:26d9]) (user=chooglen job=sendgmr) by 2002:aa7:85c2:0:b0:4cb:b95a:887f with SMTP id z2-20020aa785c2000000b004cbb95a887fmr5701298pfn.74.1645152561429; Thu, 17 Feb 2022 18:49:21 -0800 (PST) Date: Fri, 18 Feb 2022 10:49:18 +0800 In-Reply-To: Message-Id: Mime-Version: 1.0 References: Subject: gc/recursive-fetch-with-unused-submodules (was Re: What's cooking in git.git (Feb 2022, #05; Thu, 17)) From: Glen Choo To: Junio C Hamano , git@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Junio C Hamano writes: > * gc/recursive-fetch-with-unused-submodules (2022-02-10) 8 commits > - submodule: fix bug and remove add_submodule_odb() > - fetch: fetch unpopulated, changed submodules > - submodule: extract get_fetch_task() > - t5526: use grep to assert on fetches > - t5526: introduce test helper to assert on fetches > - submodule: make static functions read submodules from commits > - submodule: store new submodule commits oid_array in a struct > - submodule: inline submodule_commits() into caller > > When "git fetch --recurse-submodules" grabbed submodule commits > that would be needed to recursively check out newly fetched commits > in the superproject, it only paid attention to submodules that are > in the current checkout of the superproject. We now do so for all > submodules that have been run "git submodule init" on. > > Will merge to 'next'? > source: <20220210044152.78352-1-chooglen@google.com> I'm working on another version that should hopefully address some reviewer feedback on v2. I'd prefer to hold off until that version is reviewed :)