[RFC/PATCH v4 34/49] odb-helper: fix odb_helper_fetch_object() for read_object

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- odb-helper.c | 22 +- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/odb-helper.c b/odb-helper.c index 910c87a482..0017faa36e 100644 --- a/odb-helper.c +++ b/odb-helper.c @@ -584,15 +584,19 @@ int

[RFC/PATCH v4 31/49] external-odb: add external_odb_get_capabilities()

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- external-odb.c | 15 ++- odb-helper.c | 23 +++ odb-helper.h | 1 + 3 files changed, 38 insertions(+), 1 deletion(-) diff --git a/external-odb.c b/external-odb.c index 2efa805d12..8c2570b2e7 100644

[RFC/PATCH v4 30/49] odb-helper: add read_object_process()

2017-06-20 Thread Christian Couder
From: Ben Peart Signed-off-by: Ben Peart Signed-off-by: Christian Couder --- odb-helper.c | 202 --- odb-helper.h | 5 ++ sha1_file.c | 33 +- 3 files

[RFC/PATCH v4 19/49] lib-httpd: add list.sh

2017-06-20 Thread Christian Couder
This cgi script can list Git objects that have been uploaded as files to an apache web server. This script can also retrieve the content of each of these files. This will help make apache work as an external object database. Signed-off-by: Christian Couder ---

[RFC/PATCH v4 40/49] Add t0480 to test "have" capability and plain objects

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0480-read-object-have-http-e-odb.sh | 123 + t/t0480/read-object-plain-have | 116 +++ 2 files changed, 239 insertions(+) create mode 100755

[RFC/PATCH v4 37/49] odb-helper: add read_packetized_plain_object_to_fd()

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- odb-helper.c | 119 ++- 1 file changed, 118 insertions(+), 1 deletion(-) diff --git a/odb-helper.c b/odb-helper.c index a27208463c..b2d86a7928 100644 --- a/odb-helper.c +++

[RFC/PATCH v4 29/49] Add t0410 to test read object mechanism

2017-06-20 Thread Christian Couder
From: Ben Peart Signed-off-by: Ben Peart Signed-off-by: Christian Couder --- t/t0450-read-object.sh | 30 +++ t/t0450/read-object| 56 ++ 2

[RFC/PATCH v4 38/49] Add t0470 to test passing plain objects

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0470-read-object-http-e-odb.sh | 123 ++ t/t0470/read-object-plain | 93 2 files changed, 216 insertions(+) create mode 100755

[RFC/PATCH v4 27/49] Documentation: add read-object-protocol.txt

2017-06-20 Thread Christian Couder
From: Ben Peart Signed-off-by: Ben Peart Signed-off-by: Christian Couder --- Documentation/technical/read-object-protocol.txt | 102 +++ 1 file changed, 102 insertions(+) create mode 100644

[RFC/PATCH v4 33/49] odb-helper: call odb_helper_lookup() with 'have' capability

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- odb-helper.c | 23 --- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/odb-helper.c b/odb-helper.c index a6bf81af8d..910c87a482 100644 --- a/odb-helper.c +++ b/odb-helper.c @@ -142,19 +142,20 @@

[RFC/PATCH v4 26/49] odb-helper: add script_mode

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- external-odb.c | 4 odb-helper.h | 1 + t/t0400-external-odb.sh| 2 ++ t/t0410-transfer-e-odb.sh | 2 ++ t/t0420-transfer-http-e-odb.sh | 7 ++- 5 files changed, 15 insertions(+),

[RFC/PATCH v4 32/49] t04*: add 'get_cap' support to helpers

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0400-external-odb.sh| 4 t/t0410-transfer-e-odb.sh | 8 t/t0420-transfer-http-e-odb.sh | 4 3 files changed, 16 insertions(+) diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh index

[RFC/PATCH v4 12/49] external odb: add write support

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- external-odb.c | 15 +++ external-odb.h | 2 ++ odb-helper.c | 41 + odb-helper.h | 3 +++ sha1_file.c| 2 ++ 5 files changed, 59 insertions(+), 4 deletions(-) diff --git

[RFC/PATCH v4 18/49] lib-httpd: add upload.sh

2017-06-20 Thread Christian Couder
This cgi will be used to upload objects to, or to delete objects from, an apache web server. This way the apache server can work as an external object database. Signed-off-by: Christian Couder --- t/lib-httpd.sh| 1 + t/lib-httpd/upload.sh | 45

[RFC/PATCH v4 14/49] t0400: add test for external odb write support

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0400-external-odb.sh | 8 1 file changed, 8 insertions(+) diff --git a/t/t0400-external-odb.sh b/t/t0400-external-odb.sh index 6c6da5cf4f..3c868cad4c 100755 --- a/t/t0400-external-odb.sh +++ b/t/t0400-external-odb.sh @@

[RFC/PATCH v4 16/49] Add t0410 to test external ODB transfer

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0410-transfer-e-odb.sh | 136 ++ 1 file changed, 136 insertions(+) create mode 100755 t/t0410-transfer-e-odb.sh diff --git a/t/t0410-transfer-e-odb.sh b/t/t0410-transfer-e-odb.sh new

[RFC/PATCH v4 01/49] builtin/clone: get rid of 'value' strbuf

2017-06-20 Thread Christian Couder
This makes the code simpler by removing a few lines, and getting rid of one variable. Signed-off-by: Christian Couder --- builtin/clone.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/builtin/clone.c b/builtin/clone.c index

[RFC/PATCH v4 03/49] t0021/rot13-filter: improve 'if .. elsif .. else' style

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- t/t0021/rot13-filter.pl | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/t/t0021/rot13-filter.pl b/t/t0021/rot13-filter.pl index d6411ca523..1fc581c814 100644 ---

[RFC/PATCH v4 00/49] Add initial experimental external ODB support

2017-06-20 Thread Christian Couder
Goal Git can store its objects only in the form of loose objects in separate files or packed objects in a pack file. To be able to better handle some kind of objects, for example big blobs, it would be nice if Git could store its objects in other object databases (ODB). To do that, this

[RFC/PATCH v4 02/49] t0021/rot13-filter: refactor packet reading functions

2017-06-20 Thread Christian Couder
To make it possible in a following commit to move packet reading and writing functions into a Packet.pm module, let's refactor these functions, so they don't handle printing debug output and exiting. Signed-off-by: Christian Couder --- t/t0021/rot13-filter.pl | 12

[RFC/PATCH v4 06/49] Git/Packet.pm: improve error message

2017-06-20 Thread Christian Couder
Try to give a bit more information when we die() because there is no new line at the end of something we receive. Signed-off-by: Christian Couder --- perl/Git/Packet.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/perl/Git/Packet.pm

[RFC/PATCH v4 15/49] Add GIT_NO_EXTERNAL_ODB env variable

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- cache.h| 9 + environment.c | 4 external-odb.c | 6 ++ sha1_file.c| 3 +++ 4 files changed, 22 insertions(+) diff --git a/cache.h b/cache.h index 391a69e9c5..6047755629 100644 --- a/cache.h +++ b/cache.h

[RFC/PATCH v4 13/49] external-odb: accept only blobs for now

2017-06-20 Thread Christian Couder
Signed-off-by: Christian Couder --- external-odb.c | 4 1 file changed, 4 insertions(+) diff --git a/external-odb.c b/external-odb.c index 893937a7d4..6d4fdd0bc1 100644 --- a/external-odb.c +++ b/external-odb.c @@ -133,6 +133,10 @@ int

[RFC/PATCH v4 05/49] t0021/rot13-filter: use Git/Packet.pm

2017-06-20 Thread Christian Couder
After creating Git/Packet.pm from part of t0021/rot13-filter.pl, we can now simplify this script by using Git/Packet.pm. Signed-off-by: Christian Couder --- t/t0021/rot13-filter.pl | 51 +++-- 1 file changed, 3 insertions(+),

Transform log message during migration svn -> git (using git-svn)

2017-06-20 Thread paul.mattke
Hi there, this is actually not really a bug report, but much more a feature request (if I did not oversee an already existing feature like this): We want to migrate our SVN repository to GIT and will be using git-svn for that of course. Currently in SVN, all our commit log messages start either

Re: [PATCH 1/3] Contextually notify user about an initial commit

2017-06-20 Thread Ævar Arnfjörð Bjarmason
On Tue, Jun 20 2017, Kaartic Sivaraam jotted: > "git status" indicated "Initial commit" when HEAD points at > an unborn branch. This message is shared with the commit > log template "git commit" prepares for the user when > creating a commit (i.e. "You are about to create the initial >

<    1   2