From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: policy discussion on bundling ELPA packages in the emacs tarball Date: Tue, 26 Jan 2021 03:57:15 +0200 Message-ID: <7c0eaf4b-e18b-15f2-83c7-a1be379e55c2@yandex.ru> References: <86eeifawx8.fsf@stephe-leake.org> <87czxygdl9.fsf@russet.org.uk> <86tur88izp.fsf@stephe-leake.org> <86h7n880lo.fsf@stephe-leake.org> <83y2gk3rin.fsf@gnu.org> <86o8he6y4k.fsf@stephe-leake.org> <8335yq4350.fsf@gnu.org> <86k0s26qqt.fsf@stephe-leake.org> <83sg6q2is5.fsf@gnu.org> <7d85c33d-5f9c-e4b4-c37a-121bee411465@yandex.ru> <86o8hc65js.fsf@stephe-leake.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38072"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: Eli Zaretskii , emacs-devel@gnu.org, phillip.lord@russet.org.uk To: Stephen Leake Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jan 26 02:58:50 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l4Dd3-0009kk-Hh for ged-emacs-devel@m.gmane-mx.org; Tue, 26 Jan 2021 02:58:49 +0100 Original-Received: from localhost ([::1]:42356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l4Dd2-0004ET-GK for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Jan 2021 20:58:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40566) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l4Dbh-0003mU-UX for emacs-devel@gnu.org; Mon, 25 Jan 2021 20:57:25 -0500 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:40498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l4Dbf-0001aO-RU; Mon, 25 Jan 2021 20:57:25 -0500 Original-Received: by mail-ed1-x534.google.com with SMTP id a14so6600167edu.7; Mon, 25 Jan 2021 17:57:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sZQYsaH3Mb+/3FlhUgots+ov1Sxe0WtFsxn8oqq/ksg=; b=N5769/EAaWbUWRvyPr9TqcBNZnz37ZoCpV3mDd8cNAZseWie2OTl87erA7LKb3PsCN xmIYrNrktz/NbuU36G8YwpA/saF3SLNoAzmNqObVaSuDN+HXkd+jR9rjzAUb9F1aENaw jDsvpgV+Z9WmbgOebHHpuuM9vA69eIGbfWtdssiQqHJ20hIw9ev58pK2nSJPojcdMEE1 2kZEYKNHZOvgKqvcIzGs6f6kdbcQHTPeEEhOfzgoDFjWZ/5xhpgMBYO2VU72qwn8HV8S xtoyu9+jTeqjbaj7hVgAVuCji54g6pjnMTT2mhJMH7DMmX7y+Qo1H7x1qdJ89ccG6U+R odyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sZQYsaH3Mb+/3FlhUgots+ov1Sxe0WtFsxn8oqq/ksg=; b=CykN8D1VciuD9HllT0nR1db4tggnSQF1uGLh3vE7jNV9HAqN3A9ilr9jfKi4gaMXJq wZUfd5UrPf6vjyl6JcVhfQcWU85KThaZ6or0ZUTGVqtsrnppULvEv9WSpxdEKrI5cRPP jd3t6X28eKTj8Pjy1YwMVTQPlQhER2R7G3PIxTacn2YbXFDShY8fRcEmnPqHoiFf/TGP PAsYncnYRaPbHiKzkdPsI6SJfZlWD0rXKFYCAaiEzrI5GycCXFtJVpLa/Dq3PAwMUU5p rTumgpjGsES9U9i1J4VNeGci/vkv8W9Aes17iYRzQVS4iV4Da7vHBH2/UjIYRemyVS2f uSHA== X-Gm-Message-State: AOAM533SXz5MsX52+iv7NAjLQrKbdIcfFla/V1qcTMCHwhdQ4b8Tpxj3 pNxnZ6b7/GsBOwV/SJhBYSSnb9c/g7Q= X-Google-Smtp-Source: ABdhPJwcbBsZOV8L/LrR9daiBSADayzW+Jgc86gZ0bQpxBpmNLGNldgp4eUdjuEESdqYQKRuqMj4TQ== X-Received: by 2002:aa7:d2d4:: with SMTP id k20mr2678331edr.361.1611626239603; Mon, 25 Jan 2021 17:57:19 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id s12sm11662548edu.28.2021.01.25.17.57.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Jan 2021 17:57:18 -0800 (PST) In-Reply-To: <86o8hc65js.fsf@stephe-leake.org> Content-Language: en-US Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=raaahh@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:263430 Archived-At: On 26.01.2021 00:00, Stephen Leake wrote: > Dmitry Gutov writes: > >> On 24.01.2021 22:15, Eli Zaretskii wrote: >>> IMO, people who are interested only in packages bundled with Emacs >>> should not need to have ELPA on their local machines. Not even one >>> checkout of ELPA should be needed. They should just need to clone the >>> Emacs Git repository (modulo the submodules-related options), and >>> that's all. Exactly like they do today: there's no need to clone ELPA >>> to have a fully functional clone of the Emacs Git repository. >> >> Git allows one to check out one branch's contents, without the rest of >> the repository. > > Just to be clear, "checkout" means retrieve from a local git repository > into a directory tree; that is always a single branch. I referred to doing only a partial download, of course. >> So said people wouldn't need to download the whole of ELPA, if you >> were worried about that. > > "clone" and "add submodule" download from the remote repository. > > "add submodule -b " specifies what branch to checkout, but still > downloads the whole repository. > > Ah; "clone ... --single-branch --branch " allows downloading > only that branch into the local repository. But you can't specify more > than one branch, so that would be inconvenient for more than one bundled > package. > > And "git add submodule" does not accept --single-branch. There is a pretty long description here: https://stackoverflow.com/questions/2144406/how-to-make-shallow-git-submodules, which I didn't have time to read whole. But from a small experiment, here's what you can do: git submodule add --depth 1 cd git fetch --depth 512 # or however more you need There are also options like --shallow-since or --deepen.