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

[PATCH 0/2] Persistent submodule pathspec specification

From
Stefan Beller <sbeller@google.com>
Date
May 21, 2016, 00:28 UTC
Message-ID
<20160521002811.24656-1-sbeller@google.com>

This was part of the former series 'submodule groups'. However the labeling was ripped out and goes in its own series sb/pathspec-label.

First we introduce a switch `--init-default-path` for `git submodule update` which will read the pathspec to initialize the submodules not from the command line but from `submodule.defaultUpdatePath`, which can be configured permanently.

The second patch utilizes this by having `clone` set that config option and using that new option when calling to update the submodules.

Thanks, Stefan

Stefan Beller (2):
  submodule update: add `--init-default-path` switch
  clone: add --init-submodule=<pathspec> switch
 6 files changed, 216 insertions(+), 14 deletions(-)
 Documentation/config.txt        |   5 ++
 Documentation/git-clone.txt     |  25 +++++---
 Documentation/git-submodule.txt |  11 +++-
 builtin/clone.c                 |  34 +++++++++-
 git-submodule.sh                |  21 ++++++-
 t/t7400-submodule-basic.sh      | 134 ++++++++++++++++++++++++++++++++++++++++
-- 
2.8.3.396.g0eed146
Next: Stefan Beller
Message 1 of 3 in “Persistent submodule pathspec specification”
  1. 0/2 Persistent submodule pathspec specificationStefan Beller, May 21, 2016
  2. 1/2 submodule update: add `--init-default-path` switchStefan Beller, May 21, 2016
  3. 2/2 clone: add --init-submodule=<pathspec> switchStefan Beller, May 21, 2016

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.