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

Re: [PATCH] git-submodule: Make update verbose for up to date path

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 4, 2008, 20:31 UTC
Message-ID
<7v7igi5j08.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<46dff0320803040803v2f93d749t6b45fc8e47e66d21@mail.gmail.com>
"Ping Yin" <pkufranky@gmail.com> writes:
> When i run 'git submodule update' in a repository whose submodules are
> all clean, there is not any output which makes me not know whether
> this command are successful. I think this is not friendly.

Not at all. If you are unsuccessful and did not issue an error message, you have a bug to fix.

When a command finishes successfully doing what it was asked to do, especially when it does a lot of things and has potential to issue useful error messages and warnings to some but not all of them, it should stay quiet for successful ones unless there is a very good reason not to. The reasons may include "the user told it to be chatty with --verbose", "it may make the user think it hang, because it takes a long time", and perhaps "it is a rare thing to run and the user may not be familiar with how it acts".

Previous: Johannes Schindelin
Message 5 of 5 in “git-submodule: Make update verbose for up to date path”
  1. git-submodule: Make update verbose for up to date pathPing Yin, Mar 4, 2008
  2. Johannes SchindelinMar 4, 2008
  3. Ping YinMar 4, 2008
  4. Johannes SchindelinMar 4, 2008
  5. Junio C HamanoMar 4, 2008

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.