[PATCH/RFC 5/7] fetch: add sparse-prefix option

2016-07-28 Thread Robin Ruede
also pass sparse-prefix option from fetch to rev-list while checking connectivity Signed-off-by: Robin Ruede <r.ru...@gmail.com> --- builtin/fetch.c | 19 ++- connected.c | 7 ++- transport.c | 4 transport.h | 4 4 files changed, 28 insertions

[PATCH/RFC 4/7] fetch-pack: add sparse prefix to smart protocol

2016-07-28 Thread Robin Ruede
For example git fetch-pack --sparse-prefix=/contrib/ origin HEAD Should fetch a pack that is generated on the remote by echo HEAD | git pack-objects --revs --stdout --sparse-prefix=/contrib/ Signed-off-by: Robin Ruede <r.ru...@gmail.com> --- builtin/fetch-pack.c | 6 ++

[PATCH/RFC 7/7] remote-curl: add sparse prefix

2016-07-28 Thread Robin Ruede
Signed-off-by: Robin Ruede <r.ru...@gmail.com> --- remote-curl.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/remote-curl.c b/remote-curl.c index e181e62..b9f7cf1 100644 --- a/remote-curl.c +++ b/remote-curl.c @@ -20,6 +20,7 @@ static struct strb

[PATCH/RFC 6/7] clone: add sparse-prefix option

2016-07-28 Thread Robin Ruede
For example git clone git@remote:repo --sparse-prefix=/contrib/ would create a repository, cloning only the relevant files for the contrib subdirectory, and also setting the sparse-checkout option, so only those files will be checked out. Signed-off-by: Robin Ruede <r.ru...@gmail.

[PATCH/RFC 3/7] Skip checking integrity of files ignored by sparse

2016-07-28 Thread Robin Ruede
(this might be wrong, not sure if this is the right place) Signed-off-by: Robin Ruede <r.ru...@gmail.com> --- cache-tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cache-tree.c b/cache-tree.c index f28b1f4..ab01ae5 100644 --- a/cache-tree.c +++ b/cache-

[PATCH/RFC 2/7] pack-objects: add sparse-prefix

2016-07-28 Thread Robin Ruede
. Signed-off-by: Robin Ruede <r.ru...@gmail.com> --- builtin/pack-objects.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c index a2f8cfd..0674f57 100644 --- a/builtin/pack-objects.c +++ b/builtin/pack-objects.c @@ -2621,6 +

[PATCH/RFC 1/7] list-objects: add sparse-prefix option to rev_info

2016-07-28 Thread Robin Ruede
this skips all blob objects who's path does not begin with the specified prefix Signed-off-by: Robin Ruede <r.ru...@gmail.com> --- list-objects.c | 4 +++- revision.c | 4 revision.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/list-objects.c b/list-obj

[PATCH/RFC 0/7] Add possibility to clone specific subdirectories

2016-07-28 Thread Robin Ruede
orys-sub-directory-only [5]: https://stackoverflow.com/questions/11834386/cloning-only-a-subdirectory-with-git [6]: https://askubuntu.com/questions/460885/how-to-clone-git-repository-only-some-directories [7]: https://coderwall.com/p/o2fasg/how-to-download-a-project-subdirectory-from-github Rob