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

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

From
Philip Oakley <philipoakley@iee.org>
Date
Feb 27, 2014, 16:18 UTC
Message-ID
<3A9AA61FDE124808AA25DE3511CF99F1@PhilipOakley>

I'm having a long think (sickness R&R) about the possible options for a narrow clone implementation.

Is there currently any way in the code base that a complete sub-directory can be marked as 'missing' as could be the case for a narrow clone? The assume-unchanged/skip-worktree are close but only applies to filepaths/blobs, rather than trees.

At the moment 'Cached tree' index extension does list the sha1 for unchanged sub-drectories for ease of creating tree's for new commits, but I couldn't see if it could be (ab)used to support a narrow clone.

Have there been previous attempts to look at marking sub-dirs as --skip-worktree, or some other sentinel value for the missing tree?

--- Philip Oakley

Next: Duy Nguyen
Message 1 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.