#!/bin/bashset -eu -o pipefail git init -q empty_oid=$(git hash-object -w --stdin </dev/null)symlink_target=$(echo -n 'X' | git hash-object -w --stdin) git update-index --index-info <<-EOF100644 $empty_oid FILE_X100644 $empty_oid FILE_x100644 $empty_oid file_X100644 $empty_oid file_x100644 $empty_oid D/B100644 $empty_oid D/C100644 $empty_oid d100644 $empty_oid X120000 $symlink_target x120000 $symlink_target link-to-XEOF git commit -m "init"git checkout -f HEAD;
#!/bin/bash
set -eu -o pipefail
git init -q
empty_oid=$(git hash-object -w --stdin </dev/null)
symlink_target=$(echo -n 'X' | git hash-object -w --stdin)
git update-index --index-info <<-EOF
100644 $empty_oid FILE_X
100644 $empty_oid FILE_x
100644 $empty_oid file_X
100644 $empty_oid file_x
100644 $empty_oid D/B
100644 $empty_oid D/C
100644 $empty_oid d
100644 $empty_oid X
120000 $symlink_target x
120000 $symlink_target link-to-X
EOF
git commit -m "init"
git checkout -f HEAD;