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
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 ++
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
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.
(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-
.
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 +
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
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
8 matches
Mail list logo