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

Re: commit --quiet option

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 25, 2009, 01:10 UTC
Message-ID
<7vtywj76k4.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20091124051622.GB18003@debian.b2j>
bill lam <cbill.lam@gmail.com> writes:
> In git version 1.6.6.rc0.15.g4fa8a0 using the --quiet option it still
> show some output.  Is that intended?  Specifically I would like to
> exclude message about the untracked files when using --quite option.

Given that you are getting "you told me to make a commit without preparing anything to commit" error message, I think it can be argued in both ways.

    $ git commit -q -uno -m 'meaningless message'

would omit the listing of Untracked files; a better alternative, depending on what are listed in the section (I take "a123" is an example made-up for reproduction recipe, and you are probably getting something like 'foo.bak' in real life), might be to update your .gitignore, though.

Show 20 quoted lines
> $ git commit -q -m commit
> # On branch master
> # Changed but not updated:
> #   (use "git add <file>..." to update what will be committed)
> #   (use "git checkout -- <file>..." to discard changes in working directory)
> #
> #       modified:   .git-completion.bash
> #       modified:   bin/mirrorgit
> #
> # Untracked files:
> #   (use "git add <file>..." to include in what will be committed)
> #
> #       a123
> no changes added to commit (use "git add" and/or "git commit -a")
>
> -- 
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
Previous: bill lamNext: bill lam
Message 2 of 3 in “commit --quiet option”
  1. bill lamNov 24, 2009
  2. Junio C HamanoNov 25, 2009
  3. bill lamNov 25, 2009

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.