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

2014-02-28 Thread Philip Oakley

From: Duy Nguyen pclo...@gmail.com
On Fri, Feb 28, 2014 at 6:46 AM, Philip Oakley philipoak...@iee.org 
wrote:
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?


My last attempt was
http://git.661346.n2.nabble.com/PATCH-00-17-Narrow-clone-v3-was-subtree-clone-tt5499879.html
If you're interested in the index part then see 15/17 and maybe 03/17
and 04/17. I can try to rebase and publish the series somewhere if you
want to try it out.
--
Duy
--
Thanks for that pointer.  I'll look it out and see how well it matched 
my ideas, and reflect on any differences to pick up learning points 
early!


Philip 


--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

2014-02-27 Thread Philip Oakley
I'm having a long think (sickness RR) 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

--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

2014-02-27 Thread Duy Nguyen
On Fri, Feb 28, 2014 at 12:25 AM, Philip Oakley philipoak...@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
--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

2014-02-27 Thread Philip Oakley

From: Duy Nguyen pclo...@gmail.com
On Fri, Feb 28, 2014 at 12:25 AM, Philip Oakley philipoak...@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 


--
To unsubscribe from this list: send the line unsubscribe git in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html