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

Re: A tour of git: the basics (and notes on some unfriendly messages)

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 29, 2007, 22:25 UTC
Message-ID
<7vlkapjeir.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<E5C688F2-4A8D-402A-9757-5007BE4A8B25@zib.de>
Steffen Prohaska <prohaska@zib.de> writes:
> Quite often git prints a lot of very technical information that
> is not very interesting as long as things succeed without error.
> Some examples are
> - git fetch (see above)
Probably.
> - git rebase: prints a lot of details that I'm not interested in
>   unless the rebase fails.

Yes. Most of the clutter is coming from "am" which also should be squelched.

Saying
	Switched to branch <blah>
is good when the branch to rebase is specified.
	"HEAD is now at ..."
is not useful -- it is a side effect of rewinding the head to
the --onto commit.
	<blank line>
        Applying <patch subject>
	<blank line>
        Wrote tree <tree object>
        Committed: <commit object>

are coming from "am" for each patch. We could squelch these into just one "Applying <patch subject>" and nothing else, which would also help making "am" quieter.

> - git push: prints updates of remote heads. A message about
>   failing to update a remote head may get lost.

Please do not remove the report of successful update, as people often say "git push" or "git push $there" without explicitly saying which refs to push. When pushing out to publish, I say "git push ko" (to mean k.org) and I _want_ my positive feedback.

Show 5 quoted lines
> - git merge: the fact that a merge is a fast forward merge gets
>   printed at the very top, followed by (often a lot of) diffstat.
>   I know diffstat can help to judge if the merge did what you
>   expected. But even more important is the fact that the merge
>   was just a fast forward, which may get buried under lots of output.

I do not think fast-forwardness is particularly interesting. If you find fast-forwardness interesting, I suspect you would even want to know what _your_ change that were not in the other side of the merge, which is something that we do not even report right now.

> Maybe git should become more quiet, as other unix tools are, and
> per default only report problems. Technical details and progress
> could be requested explicitly by '--verbose' or similar.

I'd agree with this sentiment in principle, and many of the things you propose to remove above fall into the "unnecessary clutter" category. But some of the existing output fall into the "necessary info" category --- diffstart after merge and report of successful remote ref updates are such things, so we should be careful not to go overboard.

Previous: Steffen ProhaskaNext: Steffen Prohaska
Message 18 of 26 in “A tour of git: the basics (and notes on some unfriendly messages)”
  1. Carl WorthSep 28, 2007
  2. Shawn O. PearceSep 29, 2007
  3. Johannes SchindelinSep 29, 2007
  4. Steffen ProhaskaSep 29, 2007
  5. Johannes SchindelinSep 29, 2007
  6. Steffen ProhaskaSep 29, 2007
  7. WinGit: included /bin/start in the installerSteffen Prohaska, Sep 29, 2007
  8. WinGit: include html pages from official git.git's html branchSteffen Prohaska, Sep 29, 2007
  9. Johannes SchindelinSep 29, 2007
  10. Junio C HamanoSep 29, 2007
  11. Johannes SchindelinSep 29, 2007
  12. Steffen ProhaskaSep 30, 2007
  13. Pierre HabouzitSep 29, 2007
  14. Wincent ColaiutaSep 30, 2007
  15. Pierre HabouzitSep 30, 2007
  16. Wincent ColaiutaSep 30, 2007
  17. Steffen ProhaskaSep 29, 2007
  18. Junio C HamanoSep 29, 2007
  19. Steffen ProhaskaSep 30, 2007
  20. Junio C HamanoSep 30, 2007
  21. Johannes SchindelinSep 30, 2007
  22. Steffen ProhaskaSep 30, 2007
  23. Junio C HamanoSep 29, 2007
  24. Carl WorthSep 30, 2007
  25. Carl WorthSep 30, 2007
  26. Nguyen Thai Ngoc DuySep 29, 2007

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.