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

Re: [PATCHv5 3/3] submodule: Reimplement `module_clone` shell function in C

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 8, 2015, 22:46 UTC
Message-ID
<xmqqr3m87cn4.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAGZ79kYAsNZ1huLrYOvyPtYHKoN4paBGXbY3OMX3SQNMwqCiKA@mail.gmail.com>
Stefan Beller <sbeller@google.com> writes:
Show 21 quoted lines
> On Thu, Sep 3, 2015 at 3:07 PM, Junio C Hamano <gitster@pobox.com> wrote:
>>> +
>>> +     cp.no_stdin = 1;
>>> +     cp.no_stdout = 1;
>>> +     cp.no_stderr = 1;
>>
>> Output from "git clone" is not shown, regardless of --quiet option?
>
> Removed that.
>
>>> +     argc = parse_options(argc, argv, prefix, module_clone_options,
>>> +                          git_submodule_helper_usage, 0);
>>> +
>>> +     strbuf_addf(&sb, "%s/modules/%s", get_git_dir(), name);
>>
>> The original says
>>
>>         base_name=$(dirname "$name")
>> ...
> Slashes are already in use for submodule names as the name defaults
> to the path if no explicit name is given.

Ahh, OK, that base_name thing is so that "mkdir -p" can create a surrounding directory without creating the final level, which is left for 'git clone" to prepare. I misread the code. Thanks.

Previous: Stefan BellerNext: Eric Sunshine
Message 9 of 10 in “[PATCHv5 0/3] submodule--helper: Have some refactoring only patches first”
  1. Stefan BellerSep 2, 2015
  2. 1/3 submodule: Reimplement `module_list` shell function in CStefan Beller, Sep 2, 2015
  3. Junio C HamanoSep 3, 2015
  4. Stefan BellerSep 3, 2015
  5. 2/3 submodule: Reimplement `module_name` shell function in CStefan Beller, Sep 2, 2015
  6. 3/3 submodule: Reimplement `module_clone` shell function in CStefan Beller, Sep 2, 2015
  7. Junio C HamanoSep 3, 2015
  8. Stefan BellerSep 8, 2015
  9. Junio C HamanoSep 8, 2015
  10. Eric SunshineSep 3, 2015

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.