Skip to content

diff --no-index: fix test blind spots

Ævar Arnfjörð Bjarmason git 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2diff --no-index tests: add test for --exit-codet/t4053-diff-no-index.sh+5 -00 replies
2/2diff --no-index tests: test mode normalizationt/t4053-diff-no-index.sh+55 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] diff --no-index: fix test blind spots

Since v2[1]: s/echo -n/printf/ (and I re-adjusted my test setup to run the linting..)

1. https://lore.kernel.org/git/[email protected]/

Ævar Arnfjörð Bjarmason (2):
diff --no-index tests: add test for --exit-code
diff --no-index tests: test mode normalization

 t/t4053-diff-no-index.sh | 60 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

Range-diff:

1:  2dbc6c253e2 = 1:  7dd5c309a70 diff --no-index tests: add test for --exit-code
2:  a1ab6a323f2 ! 2:  e5bb094b783 diff --no-index tests: test mode normalization
    @@ t/t4053-diff-no-index.sh: test_expect_success 'diff --no-index allows external d
     +test_expect_success POSIXPERM,SYMLINKS 'diff --no-index normalizes: mode not like git mode (symlink)' '
     +	ln -s y z &&
     +	X_OID=$(git hash-object --stdin <x) &&
    -+	Z_OID=$(echo -n y | git hash-object --stdin) &&
    ++	Z_OID=$(printf "y" | git hash-object --stdin) &&
     +	cat >expected <<-EOF &&
     +	diff --git a/x b/x
     +	deleted file mode 100644
Signature · 1 line
2.31.0.366.g871543fb182