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

[PATCH v2 0/2] replace test -f with test_path_is_file

From
KGKrushnal Patel via GitGitGadget <gitgitgadget@gmail.com>
Date
Mar 19, 2021, 19:24 UTC
Message-ID
<pull.982.v2.git.git.1616181893.gitgitgadget@gmail.com>
In-Reply-To
<pull.982.git.git.1616147527082.gitgitgadget@gmail.com>

Although has the same functionality as test_path_is_file(), in the case where test_path_is_file() fails, we get much better debugging information.

Replace with test_path_is_file so that future developers will have a better experience debugging these test cases.

krush11 (2):
  replace test -f with test_path_is_file
  replaced test -f and test ! -f
 t/t7300-clean.sh | 376 +++++++++++++++++++++++------------------------
 1 file changed, 188 insertions(+), 188 deletions(-)
base-commit: 576ba9dcdaf1007243f5a5cb4bf1a1e7b8fcf850
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-982%2Fkrush11%2Fnext-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-982/krush11/next-v2
Pull-Request: https://github.com/git/git/pull/982
Range-diff vs v1:
 1:  e5f92e3882cd = 1:  e5f92e3882cd replace test -f with test_path_is_file
 -:  ------------ > 2:  a31a147a34f8 replaced test -f and test ! -f
-- 
gitgitgadget
Previous: Junio C HamanoNext: krush11 via GitGitGadget
Message 3 of 6 in “replace test -f with test_path_is_file”
  1. replace test -f with test_path_is_fileKrushnal Patel via GitGitGadget, Mar 19, 2021
  2. Junio C HamanoMar 19, 2021
  3. 0/2 replace test -f with test_path_is_fileKrushnal Patel via GitGitGadget, Mar 19, 2021
  4. 1/2 replace test -f with test_path_is_filekrush11 via GitGitGadget, Mar 19, 2021
  5. 2/2 replaced test -f and test ! -fkrush11 via GitGitGadget, Mar 19, 2021
  6. Junio C HamanoMar 19, 2021

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.