git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Hash for a commit sourcetree beside to a commit hash

From
AAndry <andry@inbox.ru>
Date
Feb 4, 2023, 04:50 UTC
Message-ID
<1196589662.20230204075023@inbox.ru>
In-Reply-To
<Y90lBJ8b5nCUcLv2@danh.dev>
Hello Đoàn,
Friday, February 3, 2023, 6:15:16 PM, you wrote:
ĐTCD> On 2023-02-03 16:37:20+0300, Andry <andry@inbox.ru> wrote:
Show 8 quoted lines
>> Hello Philip,
>> >> Nice, but I can not apply this over a git hub or a web interface without a clone.
>> 
>> PO> As a 'Distributed'-VCS, cloning the repository would be the de-facto
>> PO> normal approach, otherwise you have re-invented centralised VCS ;-)
>> 
>> Cloning repository is a heavy operation by downloading everything
>> instead of search a single commit.

ĐTCD> You can limit the download with "git clone --filter=tree:0" ĐTCD> which only fetch the commit but not any tree or file contents.

And what next? You still need to download something to see. Better to start search in the remote anyway, because, for example, it is someone's else repository you don't want to download at all until you find something. This is how it works in first place - you search something to start download, instead of to download at first to search something.

Previous: Đoàn Trần Công DanhNext: Philip Oakley
Message 7 of 11 in “Hash for a commit sourcetree beside to a commit hash”
  1. AndryFeb 3, 2023
  2. Đoàn Trần Công DanhFeb 3, 2023
  3. AndryFeb 3, 2023
  4. Philip OakleyFeb 3, 2023
  5. AndryFeb 3, 2023
  6. Đoàn Trần Công DanhFeb 3, 2023
  7. AndryFeb 4, 2023
  8. Philip OakleyFeb 3, 2023
  9. AndryFeb 5, 2023
  10. AndryFeb 12, 2023
  11. AndryFeb 26, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.