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

Re: [PATCH] clone: add `--shallow-submodules` flag

From
Stefan Beller <sbeller@google.com>
Date
Apr 26, 2016, 01:08 UTC
Message-ID
<CAGZ79kYJeqjoxXmcoe8ZdsdpwEjFrf4MtOuJsZ3EZr0NMuNAaQ@mail.gmail.com>
In-Reply-To
<xmqqvb35iabx.fsf@gitster.mtv.corp.google.com>
On Mon, Apr 25, 2016 at 3:37 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Stefan Beller <sbeller@google.com> writes:
>
>> I agree. How about `currentdir`, `testdir` or `testtop` instead?
>> That is slightly longer than `D`, `here` or `top`, but is slightly more
>> informative. $TRASH would also work for me.
>
> I would not be happy to see a patch that adds yet another variable
> that is never used so far, like currentdir, testdir, or testtop.

D seems to be popular in 5510, the submodule crowd seems to prefer $pwd though, see t5526-fetch-submodules.sh t7406-submodule-update.sh t7407-submodule-foreach.s t7400-submodule-basic.sh

as grep -r "\$pwd" put it.
Show 7 quoted lines
>
> Among the ones I found that are already in use, $here is probably my
> favourite, because it does _not_ have to be set to the top; it just
> says "this is the directory my main focus is in".
>
> Having said that, personally, I find $D (as long as D is in capital)
> is distinctive and descriptive enough.
I rather go with pwd for now (it keeps the submodule stuff consistent),

Thanks, Stefan

Previous: Junio C Hamano
Message 5 of 5 in “clone: add `--shallow-submodules` flag”
  1. clone: add `--shallow-submodules` flagStefan Beller, Apr 25, 2016
  2. Junio C HamanoApr 25, 2016
  3. Stefan BellerApr 25, 2016
  4. Junio C HamanoApr 25, 2016
  5. Stefan BellerApr 26, 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.