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

Re: [PATCH] git stash: one bug and one feature request

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 5, 2008, 08:36 UTC
Message-ID
<7vbq80d5yp.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<e5bfff550801050025g6758bfb6p751e69e93d4299be@mail.gmail.com>
"Marco Costalba" <mcostalba@gmail.com> writes:
> This low level run() should know nothing about the semantic of the
> command or the outputted data, but should detect command failing,
> because failing reporting framework is unified and is the same for
> each type of command.
That sounds like a framework generalized in a wrong way to me.
> Please note that also gitk uses the same approach, indeed from
> http://ftp.tcl.tk/man/tcl8.5/tutorial/Tcl26.html you can read:
> ...
Heh, as if tcl is a textbook of good programming style.
> I can also black list not commonly behaving programs, but in case of
> git-stash a fail to see why to choose a not standard behaviour when
> not needed.

I do not offhand see a reason it would _hurt_ for this particular case (git-stash) to write the diagnostics we currently spit out to stderr to stdout. My objection is primarily because I do not think "never writing to stderr if there is no error" is standard behaviour AT ALL.

IOW, I do have much less objections to what your patch actually does, than I have problems with the way the reason for the change is stated. The change is not fixing anything to conform to some standard behaviour. It is more about bending (admittedly only slightly) backwards to help broken callers. That is what I have most trouble with.

Previous: Marco CostalbaNext: Marco Costalba
Message 9 of 19 in “git stash: one bug and one feature request”
  1. git stash: one bug and one feature requestMarco Costalba, Jan 4, 2008
  2. Brandon CaseyJan 4, 2008
  3. Pascal ObryJan 4, 2008
  4. Jakub NarebskiJan 4, 2008
  5. Brian SwetlandJan 4, 2008
  6. Jeff KingJan 4, 2008
  7. Junio C HamanoJan 5, 2008
  8. Marco CostalbaJan 5, 2008
  9. Junio C HamanoJan 5, 2008
  10. Marco CostalbaJan 5, 2008
  11. Junio C HamanoJan 5, 2008
  12. Wayne DavisonJan 5, 2008
  13. Junio C HamanoJan 5, 2008
  14. Marco CostalbaJan 5, 2008
  15. Brandon CaseyJan 4, 2008
  16. Marco CostalbaJan 4, 2008
  17. Brandon CaseyJan 4, 2008
  18. Marco CostalbaJan 4, 2008
  19. Junio C HamanoJan 5, 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.