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

Re: How to mark a complete sub-directory assume-unchanged/skip-worktree?

From
Philip Oakley <philipoakley@iee.org>
Date
Feb 27, 2014, 23:38 UTC
Message-ID
<DAC4EA00279649D6B3F4DB1B3D662BA6@PhilipOakley>
In-Reply-To
<CACsJy8DV2uCQbfCP=Mf2qajVAtpTZvKKeCS2H4_o6LA3B96QAA@mail.gmail.com>
From: "Duy Nguyen" <pclouds@gmail.com>
Show 11 quoted lines
> On Fri, Feb 28, 2014 at 12:25 AM, Philip Oakley <philipoakley@iee.org> 
> wrote:
>> Have there been previous attempts to look at marking sub-dirs as
>> --skip-worktree, or some other sentinel value for the missing tree?
>
> I dealt with this by creating partial index, that only contains
> entries for interested subtrees. The index also stores the base tree
> SHA-1, so write-tree can still create (full) new trees correctly from
> partial index.
> -- 
> Duy

Is there a particular bit of code I'd be worth studying for the partial index example to see how well it might fit my ideas?

-- Philip

Previous: Duy NguyenNext: Duy Nguyen
Message 3 of 5 in “How to mark a complete sub-directory assume-unchanged/skip-worktree?”
  1. Philip OakleyFeb 27, 2014
  2. Duy NguyenFeb 27, 2014
  3. Philip OakleyFeb 27, 2014
  4. Duy NguyenFeb 28, 2014
  5. Philip OakleyFeb 28, 2014

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.