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

Re: [PATCH v2] t4200-rerere.sh: use test_path_is_* functions in the script

From
Danh Doan <congdanhqx@gmail.com>
Date
Apr 9, 2020, 15:21 UTC
Message-ID
<20200409152134.GC1937@danh.dev>
In-Reply-To
<pull.595.v2.git.1586444061576.gitgitgadget@gmail.com>
On 2020-04-09 14:54:21+0000, Allo via GitGitGadget <gitgitgadget@gmail.com> wrote:
> From: Angel Pan <dinoallosaurus1111@gmail.com>
> 
> Subject: t4200-rerere.sh: use test_path_is_* functions in the script

"in the script" looks too verbose to me. Because the script has been mentioned earlier.

> The original code works fine. However, since the code base has already had help-functions(in test-lib-functions),

We wrap lines at 72 characters per line. And, missing space before open parenthese.

I'm not good at wording, but I think this commit message is too verbose. I would say something like:

	Prefer "test_path_is_dir" to "test -d" and test_path_is_file
	to "test -f" because they're more friendly to debug.

That's not a good message, either. But, it's some what simpler and cleaner.

Show 5 quoted lines
> the change is able to help people understand the code better, as well as improve debug-friendliness.
> 
> * t4200-rerere.sh: replace "test -d" with "test_path_is_dir"
> * t4200-rerere.sh: replace "test -f" with "test_path_is_file"
> 
-- 
Danh
Previous: Allo via GitGitGadgetNext: Junio C Hamano
Message 3 of 4 in “t4200-rerere.sh: use test_path_is_* functions in the script”
  1. t4200-rerere.sh: use test_path_is_* functions in the scriptAllo via GitGitGadget, Mar 30, 2020
  2. t4200-rerere.sh: use test_path_is_* functions in the scriptAllo via GitGitGadget, Apr 9, 2020
  3. Danh DoanApr 9, 2020
  4. Junio C HamanoApr 9, 2020

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.