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

Re: [PATCH v2] t7001-mv.sh: modernizing test script using functions

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
Nov 3, 2022, 19:37 UTC
Message-ID
<CAN0heSohT_zDYequyv9-cCALrbpR0yQnSoPA3+YGMhgKxE5K3g@mail.gmail.com>
In-Reply-To
<pull.1372.v2.git.git.1667500788132.gitgitgadget@gmail.com>

On Thu, 3 Nov 2022 at 19:39, Debra Obondo via GitGitGadget <gitgitgadget@gmail.com> wrote:

Show 12 quoted lines
>
> From: Debra Obondo <debraobondo@gmail.com>
>
> Test script to verify the presence/absence of files, paths, directories,
> symlinks and other features in 'git mv' command are using the command
> format:
>
> 'test (-e|f|d|h|...)'
>
> Replace them with helper functions of format:
>
> 'test_path_is_*'
Ok.
Show 10 quoted lines
> Changes since v1
>
> Replacing idiomatic helper functions
>
> '! test_path_is_*'
>
> with
>
> 'test_path_is_missing'
>

The above "Changes since v1" and what I've quoted here should probably be dropped. We prefer our patches to look as if they've appeared out of the blue in perfect shape. :-)

> This uses values of 'test_path_bar' in place of '! test_path_foo' to
> bring in the helpful factor of indicating the failure of tests after the
> mv command has been used, that is, it echoes if the feature/test_path
> exists.

This paragraph is excellent. It describes why you've done the patch this way. This looks much better than version 1 of the patch!

> Signed-off-by: Debra Obondo <debraobondo@gmail.com>
After removing the lines about changes since v1, this patch is
Reviewed-by: Martin Ågren <martin.agren@gmail.com>
Show 13 quoted lines
> ---
>     [PATCH v2] [OUTREACHY] t7001-mv.sh : Use test_path_is_* functions in
>     test script
>
>     Changes since v1:
>
>     Replacing idiomatic helper functions
>
>     '! test_path_is_*'
>
>     with
>
>     'test_path_is_missing'

This place after the "---" line is an excellent place for including such "here's what has changed since v1" comments. Good. They will not appear in the final commit message.

Thanks for contributing!
Martin
Previous: Debra Obondo via GitGitGadgetNext: Debra Obondo via GitGitGadget
Message 6 of 8 in “t7001-mv.sh:modernizing test script using function”
  1. t7001-mv.sh:modernizing test script using functionDebra Obondo via GitGitGadget, Oct 30, 2022
  2. Taylor BlauOct 30, 2022
  3. Martin ÅgrenOct 31, 2022
  4. Taylor BlauNov 1, 2022
  5. t7001-mv.sh: modernizing test script using functionsDebra Obondo via GitGitGadget, Nov 3, 2022
  6. Martin ÅgrenNov 3, 2022
  7. t7001-mv.sh: modernizing test script using functionsDebra Obondo via GitGitGadget, Nov 4, 2022
  8. Taylor BlauNov 4, 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.