Skip to content

Use << rather than <<- heredoc operator #1435

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified gix-diff/tests/fixtures/generated-archives/make_diff_repo.tar
Binary file not shown.
2 changes: 1 addition & 1 deletion gix-dir/tests/fixtures/many.sh
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ git init type-mismatch-icase
git init type-mismatch-icase-clash-dir-is-file
(cd type-mismatch-icase-clash-dir-is-file
empty_oid=$(git hash-object -w --stdin </dev/null)
git update-index --index-info <<-EOF
git update-index --index-info <<EOF
100644 $empty_oid D/a
100644 $empty_oid d
EOF
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ symlink_target=$(echo -n 'X' | git hash-object -w --stdin)
echo "FILE_? filter=arrow" > .gitattributes
git add -A

git update-index --index-info <<-EOF
git update-index --index-info <<EOF
100644 $content_oid FILE_X
100644 $content_oid FILE_x
100644 $content_oid file_X
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ empty_oid=$(git hash-object -w --stdin </dev/null)
fake_dir_target=$(echo -n 'A-dir' | git hash-object -w --stdin)
fake_file_target=$(echo -n 'A-file' | git hash-object -w --stdin)

git update-index --index-info <<-EOF
git update-index --index-info <<EOF
100644 $empty_oid A-dir/a
100644 $empty_oid A-file
120000 $fake_dir_target FAKE-DIR
Expand Down
3 changes: 2 additions & 1 deletion gix-worktree-state/tests/fixtures/make_dangling_symlink.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -eu -o pipefail
git init -q

target_oid=$(echo -n "non-existing-target" | git hash-object -w --stdin)
git update-index --index-info <<-EOF

git update-index --index-info <<EOF
120000 $target_oid dangling
EOF

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ symlink_target=$(echo -n 'X' | git hash-object -w --stdin)
echo "FILE_? filter=arrow" > .gitattributes
git add -A

git update-index --index-info <<-EOF
git update-index --index-info <<EOF
100644 $content_oid FILE_X
100644 $content_oid FILE_x
100644 $content_oid file_X
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion gix/tests/fixtures/make_rev_spec_parse_repos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ git init ambiguous_blob_tree_commit
# create one tree 0000000000cdc
git write-tree

sed -e "s/|$//" >patch <<-EOF
sed -e "s/|$//" >patch <<EOF
diff --git a/frotz b/frotz
index 000000000..ffffff 100644
--- a/frotz
Expand Down
Loading