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

Re: [PATCH v2 4/5] t3301: use test_must_fail instead of !

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 19, 2009, 00:46 UTC
Message-ID
<alpine.DEB.1.00.0902190142440.10279@pacific.mpi-cbg.de>
In-Reply-To
<20090219003727.GA25808@coredump.intra.peff.net>
Hi,
On Wed, 18 Feb 2009, Jeff King wrote:
Show 22 quoted lines
> On Wed, Feb 18, 2009 at 12:53:37PM +0100, Johannes Schindelin wrote:
> 
> > > Really? Are they not easily replaced with
> > > 
> > > -test cond1 -a cond2 -o cond3
> > > +test cond1 && test cond2 || test cond3
> > 
> > ...which is substantially harder to read.
> 
> I don't agree that it is harder to read, but that is beside the point.
> What is important is whether or not the construct is portable enough to
> meet git's standards.
> 
> "-a" and "-o" are XSI extensions to POSIX, which is usually a sign that
> there may be problems. However, besides posh (which at this point I
> think can be considered a compliance-testing shell and not an actual
> shell in use), I haven't heard of problems in practice. Even FreeBSD's
> ash derivative supports it (along with parentheses).
> 
> So I don't think it needs to be changed (which is what I said in my
> original message). But I also think saying "-a and -o are necessary" is
> not true; they can be replaced if it turns out to be a problem.

Even if they were in POSIX, I'd suggest not to change the constructs. rebase is _bound_ to be built in.

Even if Stephan is not a fan of my recent changes to rebase -i -p (which I will present on this list once they all work as I want them to), I think I can talk him into continuing the sequencer effort: he was not discussing the design in the open, so he should have expected the process to be dragged out.

Therefore, any changes to git-rebase--interactive (or for that matter, git-rebase) before the sequencer would be wasted work.

Ciao, Dscho

Previous: Jeff KingNext: Jeff King
Message 28 of 47 in “notes: only clean up message file when editing”
  1. 1/4 notes: only clean up message file when editingThomas Rast, Feb 14, 2009
  2. 2/4 notes: use GIT_EDITOR and core.editor over VISUAL/EDITORThomas Rast, Feb 14, 2009
  3. Johannes SchindelinFeb 14, 2009
  4. 3/4 t3301: fix confusing test for valid notes refThomas Rast, Feb 14, 2009
  5. Johannes SchindelinFeb 14, 2009
  6. 4/4 notes: refuse to edit notes outside refs/notes/Thomas Rast, Feb 14, 2009
  7. Johannes SchindelinFeb 14, 2009
  8. Thomas RastFeb 14, 2009
  9. 1/5 notes: only clean up message file when editingThomas Rast, Feb 14, 2009
  10. Junio C HamanoFeb 15, 2009
  11. 2/5 notes: use GIT_EDITOR and core.editor over VISUAL/EDITORThomas Rast, Feb 14, 2009
  12. 3/5 t3301: fix confusing quoting in test for valid notes refThomas Rast, Feb 14, 2009
  13. 4/5 t3301: use test_must_fail instead of !Thomas Rast, Feb 14, 2009
  14. Johannes SchindelinFeb 14, 2009
  15. Junio C HamanoFeb 15, 2009
  16. Thomas RastFeb 15, 2009
  17. Jeff KingFeb 15, 2009
  18. Thomas RastFeb 15, 2009
  19. Mike RalphsonFeb 17, 2009
  20. Jeff KingFeb 17, 2009
  21. Mike RalphsonFeb 17, 2009
  22. Jeff KingFeb 17, 2009
  23. Jeff KingFeb 18, 2009
  24. Johannes SchindelinFeb 18, 2009
  25. Jeff KingFeb 18, 2009
  26. Johannes SchindelinFeb 18, 2009
  27. Jeff KingFeb 19, 2009
  28. Johannes SchindelinFeb 19, 2009
  29. Jeff KingFeb 19, 2009
  30. Thomas RastFeb 17, 2009
  31. Thomas RastFeb 17, 2009
  32. Brandon CaseyFeb 17, 2009
  33. Junio C HamanoFeb 17, 2009
  34. test suite: correct export var=val usageJay Soffian, Feb 17, 2009
  35. Johannes SchindelinFeb 17, 2009
  36. Jay SoffianFeb 18, 2009
  37. test suite: correct export var=val usageJay Soffian, Feb 17, 2009
  38. test suite: correct export var=val usageJay Soffian, Feb 17, 2009
  39. Wincent ColaiutaFeb 18, 2009
  40. Jay SoffianFeb 18, 2009
  41. Jay SoffianFeb 18, 2009
  42. Johannes SchindelinFeb 18, 2009
  43. Wincent ColaiutaFeb 18, 2009
  44. Thomas RastFeb 18, 2009
  45. test suite: correct export var=val usageJay Soffian, Feb 18, 2009
  46. 5/5 notes: refuse to edit notes outside refs/notes/Thomas Rast, Feb 14, 2009
  47. Johannes SchindelinFeb 14, 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.