Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 333697 - support for partial checkouts in git
Summary: support for partial checkouts in git
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stanislav Ochotnicky (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 333531
  Show dependency tree
 
Reported: 2010-08-20 20:04 UTC by Thilo Bangert (RETIRED) (RETIRED)
Modified: 2014-02-22 23:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thilo Bangert (RETIRED) (RETIRED) gentoo-dev 2010-08-20 20:04:27 UTC
Git has now support for sparse checkout. 

Testing done by Nirbheek Chauhan concluded:
> Note that this doesn't satisfy half the use of sparse trees; i.e.
> quickly fetch only a subdirectory; make changes; push. However, I
> suspect that would be extremely difficult to implement given git's
> architecture.
http://archives.gentoo.org/gentoo-scm/msg_2aa0d03b82f78b45913e645337d7d4e0.xml
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-02-03 08:48:37 UTC
I think an alternate solution would be to support using the complete git checkout as /usr/portage. We'd have to rsync the caches and remaining files like herds.xml and use.local.desc then.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-02-22 23:07:42 UTC
Confirmed to work with git-9999-r2 (next branch) as of 2014/02/22

$ git config core.sparsecheckout true
$ echo profiles > .git/info/sparse-checkout
$ echo metadata >> .git/info/sparse-checkout
$ git read-tree -m -u HEAD
$ ls
metadata  profiles