31 lines · 650 B · Shell
RawDownload
#!/usr/bin/env bashset -eu -o pipefail git init mkdir dir-ignoredtouch dir-ignored/file-ignored-transitivelytouch file-ignored echo "hi" > amkdir direcho "ho" > dir/bmkdir dir/subdir touch dir/subdir/exechmod +x dir/subdir/exeln -s a symlink-to-a echo "/dir-ignored/ export-ignore" > .gitattributesecho "/file-ignored export-ignore" >> .gitattributes git add .git update-index --chmod=+x dir/subdir/exe  # For Windows.git commit -m "init" echo "extra to be streamed" > extra-filetouch extra-exe && chmod +x extra-exemkdir extra-dir-empty extra-dirln -s ../extra-file extra-dir/symlink-to-extra git rev-parse @^{tree} > head.hex