From: Stefan Beller <sbeller@google.com>
To: git@vger.kernel.org
Cc: gitster@pobox.com, Jens.Lehmann@web.de, hvoigt@hvoigt.net,
Stefan Beller <sbeller@google.com>
Subject: [PATCH 0/7] Submodule improvements
Date: Mon, 17 Aug 2015 17:21:56 -0700 [thread overview]
Message-ID: <1439857323-21048-1-git-send-email-sbeller@google.com> (raw)
This series is a reroll consisting of hv/submodule-config and
sb/submodule-helper and it applies on top of origin/jk/git-path.
Our long term goal is to make submodule handling more scalable
by parallelizing the submodule code. To write good parallelizable
code I'd first want to port it to C, as there are no good portable
solutions for shell scripts to run in parallel. This series is a
first step on porting git-submodule.sh to C.
I did not alter the patches of Heiko, except for squashing
$gmane/275799 (2 cleanup patches I proposed 5 days ago).
The module_{list, name, clone} functions are a direct translation
of the shell counter parts. I took way longer than expected for
module_clone, as I was fighting with absolute and relative paths
for too long. (Whenever shell is translated to C,
I estimate two times the number of lines of code which fits
quite reasonably.)
Thanks,
Stefan
Heiko Voigt (4):
submodule: implement a config API for lookup of .gitmodules values
submodule: extract functions for config set and lookup
submodule: use new config API for worktree configurations
submodule: Allow errornous values for the fetchrecursesubmodules
option
Stefan Beller (3):
submodule: implement `module_list` as a builtin helper
submodule: implement `module_name` as a builtin helper
submodule: implement `module_clone` as a builtin helper
.gitignore | 2 +
Documentation/technical/api-submodule-config.txt | 62 +++
Makefile | 3 +
builtin.h | 1 +
builtin/checkout.c | 1 +
builtin/fetch.c | 1 +
builtin/submodule--helper.c | 299 ++++++++++++++
diff.c | 1 +
git-submodule.sh | 164 +-------
git.c | 1 +
submodule-config.c | 482 +++++++++++++++++++++++
submodule-config.h | 29 ++
submodule.c | 122 ++----
submodule.h | 4 +-
t/t7411-submodule-config.sh | 153 +++++++
test-submodule-config.c | 76 ++++
16 files changed, 1154 insertions(+), 247 deletions(-)
create mode 100644 Documentation/technical/api-submodule-config.txt
create mode 100644 builtin/submodule--helper.c
create mode 100644 submodule-config.c
create mode 100644 submodule-config.h
create mode 100755 t/t7411-submodule-config.sh
create mode 100644 test-submodule-config.c
--
2.5.0.330.g130be8e.dirty
next reply other threads:[~2015-08-18 0:22 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-18 0:21 Stefan Beller [this message]
2015-08-18 0:21 ` [PATCH 1/7] submodule: implement a config API for lookup of .gitmodules values Stefan Beller
2015-08-18 0:21 ` [PATCH 2/7] submodule: extract functions for config set and lookup Stefan Beller
2015-08-18 0:21 ` [PATCH 3/7] submodule: use new config API for worktree configurations Stefan Beller
2015-08-18 0:22 ` [PATCH 4/7] submodule: Allow errornous values for the fetchrecursesubmodules option Stefan Beller
2015-08-19 18:09 ` Junio C Hamano
2015-08-18 0:22 ` [PATCH 5/7] submodule: implement `module_list` as a builtin helper Stefan Beller
2015-08-19 18:17 ` Junio C Hamano
2015-08-19 18:22 ` Junio C Hamano
2015-08-19 18:25 ` Stefan Beller
2015-08-19 18:23 ` Stefan Beller
2015-08-18 0:22 ` [PATCH 6/7] submodule: implement `module_name` " Stefan Beller
2015-08-18 0:22 ` [PATCH 7/7] submodule: implement `module_clone` " Stefan Beller
2015-08-18 0:26 ` Stefan Beller
2015-08-18 22:13 ` Stefan Beller
2015-08-19 19:08 ` Junio C Hamano
2015-08-19 19:20 ` Stefan Beller
2015-08-21 14:22 ` Jeff King
2015-08-18 0:38 ` [PATCH 0/7] Submodule improvements Stefan Beller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439857323-21048-1-git-send-email-sbeller@google.com \
--to=sbeller@google.com \
--cc=Jens.Lehmann@web.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=hvoigt@hvoigt.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).