git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v3 0/2] submodule: move gitdir into superproject

From
Fredrik Gustafsson <iveqy@iveqy.com>
Date
Aug 12, 2011, 19:55 UTC
Message-ID
<1313178913-25617-1-git-send-email-iveqy@iveqy.com>

Move git-dir for submodules into $GIT_DIR/modules/[name_of_submodule] of the superproject. This is a step towards being able to delete submodule directories without loosing the information from their .git directory as that is now stored outside the submodules work tree.

This is done relying on the already existent .git-file functionality. Tests that rely on .git being a directory have been fixed.

This is the third iteration of this patchseries. In this iteration the commit message of the second patch is updated and the fixup-patch from Junio squashed with the first commit.

The first can be found here: http://thread.gmane.org/gmane.comp.version-control.git/177582

The second can be found here: http://thread.gmane.org/gmane.comp.version-control.git/178970/focus=179154

Fredrik Gustafsson (2):
  rev-parse: add option --is-well-formed-git-dir [path]
  Move git-dir for submodules
 Documentation/git-rev-parse.txt |    4 ++
 builtin/rev-parse.c             |    8 +++
 cache.h                         |    1 +
 git-submodule.sh                |   49 ++++++++++++++++--
 setup.c                         |    7 +++
 t/t7400-submodule-basic.sh      |    4 +-
 t/t7403-submodule-sync.sh       |    5 +-
 t/t7406-submodule-update.sh     |  107 +++++++++++++++++++++++++++++++++++++++
 t/t7407-submodule-foreach.sh    |  103 +++++++++++++++++++------------------
 t/t7408-submodule-reference.sh  |    4 +-
 10 files changed, 231 insertions(+), 61 deletions(-)
-- 
1.7.6.403.g1fd2f.dirty
Next: Fredrik Gustafsson
Message 1 of 10 in “submodule: move gitdir into superproject”
  1. 0/2 submodule: move gitdir into superprojectFredrik Gustafsson, Aug 12, 2011
  2. 1/2 rev-parse: add option --is-well-formed-git-dir [path]Fredrik Gustafsson, Aug 12, 2011
  3. Junio C HamanoAug 12, 2011
  4. Nguyen Thai Ngoc DuyAug 13, 2011
  5. Heiko VoigtAug 13, 2011
  6. Junio C HamanoAug 14, 2011
  7. 2/2 Move git-dir for submodulesFredrik Gustafsson, Aug 12, 2011
  8. Marc BranchaudAug 15, 2011
  9. Fredrik GustafssonAug 15, 2011
  10. Junio C HamanoAug 16, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.