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

[GSoC] [PATCH v3 0/2] avoid pipes with Git on LHS

From
Shubham Mishra <shivam828787@gmail.com>
Date
Mar 12, 2022, 06:21 UTC
Message-ID
<20220312062126.31988-1-shivam828787@gmail.com>
In-Reply-To
<20220224054720.23996-1-shivam828787@gmail.com>
changes since v2:
* t0000: remove git command out of subshell
* t0030: fix missing redirections to "tmp" file
Shubham Mishra (2):
  t0001-t0028: avoid pipes with Git on LHS
  t0030-t0050: avoid pipes with Git on LHS
 t/t0000-basic.sh            | 10 +++--
 t/t0022-crlf-rename.sh      |  4 +-
 t/t0025-crlf-renormalize.sh |  4 +-
 t/t0027-auto-crlf.sh        | 12 +++---
 t/t0030-stripspace.sh       | 75 ++++++++++++++++++++++++-------------
 t/t0050-filesystem.sh       |  3 +-
 6 files changed, 66 insertions(+), 42 deletions(-)
Range-diff against v2:
1:  2a219ace42 ! 1:  5e122c0acf t0001-t0028: avoid pipes with Git on LHS
    @@ t/t0000-basic.sh: test_expect_success 'update-index D/F conflict' '
      '
      
     @@ t/t0000-basic.sh: test_expect_success 'very long name in the index handled sanely' '
    + 
      	>path4 &&
      	git update-index --add path4 &&
    ++	git ls-files -s path4 >tmp &&
      	(
     -		git ls-files -s path4 |
     -		sed -e "s/	.*/	/" |
    -+		git ls-files -s path4 >tmp &&
     +		sed -e "s/	.*/	/" tmp |
      		tr -d "\012" &&
      		echo "$a"
2:  c90fc271d9 ! 2:  c412380af3 t0030-t0050: avoid pipes with Git on LHS
    @@ t/t0030-stripspace.sh: test_expect_success \
     -    ! (printf "$ttt$sss$sss$sss" | git stripspace | grep "  " >/dev/null)
     +    printf "$ttt$sss" | git stripspace >tmp &&
     +    ! grep "  " tmp >/dev/null &&
    -+    printf "$ttt$ttt$sss" | git stripspace &&
    ++    printf "$ttt$ttt$sss" | git stripspace >tmp &&
     +    ! grep "  " tmp >/dev/null &&
    -+    printf "$ttt$ttt$ttt$sss" | git stripspace &&
    ++    printf "$ttt$ttt$ttt$sss" | git stripspace >tmp &&
     +    ! grep "  " tmp >/dev/null &&
    -+    printf "$ttt$sss$sss" | git stripspace &&
    ++    printf "$ttt$sss$sss" | git stripspace >tmp &&
     +    ! grep "  " tmp >/dev/null &&
    -+    printf "$ttt$ttt$sss$sss" | git stripspace &&
    ++    printf "$ttt$ttt$sss$sss" | git stripspace >tmp &&
     +    ! grep "  " tmp >/dev/null &&
    -+    printf "$ttt$sss$sss$sss" | git stripspace &&
    ++    printf "$ttt$sss$sss$sss" | git stripspace >tmp &&
     +    ! grep "  " tmp >/dev/null
      '
      
    @@ t/t0030-stripspace.sh: test_expect_success \
     +    echo "$ttt$sss" | git stripspace >tmp &&
     +    ! grep "  " tmp >/dev/null &&
     +    echo "$ttt$ttt$sss" | git stripspace >tmp &&
    -+    ! grep "  " tmp>/dev/null &&
    -+    echo "$ttt$ttt$ttt$sss" &&
    ++    ! grep "  " tmp >/dev/null &&
    ++    echo "$ttt$ttt$ttt$sss" | git stripspace >tmp &&
     +    ! grep "  " tmp >/dev/null &&
     +    echo "$ttt$sss$sss" | git stripspace >tmp &&
     +    ! grep "  " tmp >/dev/null &&
-- 
2.25.1
Previous: Taylor BlauNext: Shubham Mishra
Message 15 of 19 in “Subject: [PATCH 0/2] [GSoC][PATCH 0/2] t0000-t0050: avoid pipes with Git on LHS”
  1. 0/2 Subject: [PATCH 0/2] [GSoC][PATCH 0/2] t0000-t0050: avoid pipes with Git on LHSShubham Mishra, Feb 24, 2022
  2. 1/2 t0001-t0028: avoid pipes with Git on LHSShubham Mishra, Feb 24, 2022
  3. 2/2 t0030-t0050: avoid pipes with Git on LHSShubham Mishra, Feb 24, 2022
  4. Ævar Arnfjörð BjarmasonFeb 24, 2022
  5. Shubham MishraFeb 26, 2022
  6. Taylor BlauFeb 26, 2022
  7. [GSoC] [PATCH v2 0/2] avoid pipes with Git on LHSShubham Mishra, Feb 27, 2022
  8. 1/2 t0001-t0028: avoid pipes with Git on LHSShubham Mishra, Feb 27, 2022
  9. Johannes SixtFeb 27, 2022
  10. Shubham MishraMar 3, 2022
  11. 2/2 t0030-t0050: avoid pipes with Git on LHSShubham Mishra, Feb 27, 2022
  12. Johannes SixtFeb 27, 2022
  13. Shubham MishraFeb 24, 2022
  14. Taylor BlauFeb 26, 2022
  15. [GSoC] [PATCH v3 0/2] avoid pipes with Git on LHSShubham Mishra, Mar 12, 2022
  16. 1/2 t0001-t0028: avoid pipes with Git on LHSShubham Mishra, Mar 12, 2022
  17. 2/2 t0030-t0050: avoid pipes with Git on LHSShubham Mishra, Mar 12, 2022
  18. Johannes SixtMar 12, 2022
  19. Shubham MishraMar 12, 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.