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

[RFC] submodule: display progress by default

From
MKMateusz Krawczuk <krawczukmat@gmail.com>
Date
Jun 14, 2019, 12:14 UTC
Message-ID
<CAK1UviVMx1Q+8BYaLJSh-+UjkugaMr8fgS0EqZec4jmuEKJ8xw@mail.gmail.com>

Currently, git submodule does not display operation progress unless explicitly demanded by adding the --progress option to the command. This makes a bad user experience in cases of initializing a huge submodule, as one might get an impression that something went wrong and the execution froze (which was exactly my case recently).

The help page states that this is enabled by default if stderr is directed to the terminal. This is not true. It is still required to explicitly pass this option to the command.

My proposition is, instead of updating the documentation, is to set the --progress flag to true by default, and leave the rest as-is for backward compatibility. If one does not wish to see the progress, it is possible to silence it with -q or --quiet option.

Notice that such behavior will be identical for commands like clone, which display progress unless silenced with -q or --quiet.

Also submodule--helper seems to have trouble handling the --progress option. For example, `$ git submodule update --init modulename --progress` prints `error: unknown option `progress'`, but running `$ git submodule update --init --progress modulename` works fine.

Also progress is not reported for add subcommand even with --progress option set.

Note: --progress was added to submodule with commit 6d33e1c2821.
Please let me know what you think about it.

Taking advantage of the opportunity, I would like to greet everyone - it is my first post to git's mailing list.

Message 1 of 1 in “[RFC] submodule: display progress by default”
  1. Mateusz KrawczukJun 14, 2019

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.