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

Re: [PATCH] [OUTREACHY] t1002: modernize outdated conditional

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 14, 2022, 05:05 UTC
Message-ID
<xmqqy1tjatai.fsf@gitster.g>
In-Reply-To
<pull.1362.git.git.1665713184304.gitgitgadget@gmail.com>
"nsengaw4c via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: wilberforce <nsengiyumvawilberforce@gmail.com>
This name must match ...
Show 12 quoted lines
> Tests in this script use an unusual and hard to reason about
> conditional construct
>
>     if expression; then false; else :; fi
>
> Change them to use more idiomatic construct:
>
>     ! expression
>
> Cc: Christian Couder  <christian.couder@gmail.com>
> Cc: Hariom Verma <hariom18599@gmail.com>
> Signed-off-by: Nsengiyumva  wilberfore <nsengiyumvawilberforce@gmail.com>
... the name you sign-off your work with.
> -     if read_tree_u_must_succeed -m -u $treeH $treeM; then false; else :; fi'
> +     ! read_tree_u_must_succeed -m -u $treeH $treeM'
OK.
Previous: nsengaw4c via GitGitGadgetNext: nsengaw4c via GitGitGadget
Message 2 of 15 in “[OUTREACHY] t1002: modernize outdated conditional”
  1. [OUTREACHY] t1002: modernize outdated conditionalnsengaw4c via GitGitGadget, Oct 14, 2022
  2. Junio C HamanoOct 14, 2022
  3. [OUTREACHY] t1002: modernize outdated conditionalnsengaw4c via GitGitGadget, Oct 14, 2022
  4. [OUTREACHY] t1002: modernize outdated conditionalnsengaw4c via GitGitGadget, Oct 14, 2022
  5. Junio C HamanoOct 14, 2022
  6. Derrick StoleeOct 14, 2022
  7. Eric SunshineOct 14, 2022
  8. Derrick StoleeOct 14, 2022
  9. Junio C HamanoOct 14, 2022
  10. Junio C HamanoOct 14, 2022
  11. Eric SunshineOct 14, 2022
  12. Junio C HamanoOct 14, 2022
  13. Philip OakleyOct 14, 2022
  14. Junio C HamanoOct 14, 2022
  15. [OUTREACHY] t1002: modernize outdated conditionalnsengaw4c via GitGitGadget, Oct 14, 2022

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.