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

Improve git pull --quiet behaviour

From
Iustin Pop <iusty@k1024.org>
Date
Mar 8, 2008, 23:52 UTC
Message-ID
<1205020356-6682-1-git-send-email-iusty@k1024.org>

While trying to cleanup some cron jobs that do "git pull", I found out that "-q" doesn't behave as expected. The following two small patches improve the handling of this option.

My tests show that now 'git pull -q' when there are no changes is silent as expected and plain 'git pull' has the previous behaviour. I hope that I followed the code style correctly while modifying the files.

Overall diff stats:
 Documentation/git-merge.txt     |    2 +-
 Documentation/merge-options.txt |    4 ++++
 git-merge.sh                    |   19 +++++++++++++------
 git-pull.sh                     |    8 +++++---
 4 files changed, 23 insertions(+), 10 deletions(-)

regards, iustin

Next: Iustin Pop
Message 1 of 7 in “Improve git pull --quiet behaviour”
  1. Iustin PopMar 8, 2008
  2. 1/2 Add a quiet option to git mergeIustin Pop, Mar 8, 2008
  3. Add a quiet option to git mergeIustin Pop, Mar 9, 2008
  4. 2/2 Fix git pull handling of the quiet optionIustin Pop, Mar 8, 2008
  5. Junio C HamanoMar 9, 2008
  6. Iustin PopMar 9, 2008
  7. Fix git pull handling of the quiet optionIustin Pop, Mar 9, 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.