mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
17 lines
509 B
Bash
17 lines
509 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
echo "Using sparse checkout for postgres"
|
||
|
|
||
|
FILES_TO_CHECKOUT=$(git rev-parse --git-dir)/info/sparse-checkout
|
||
|
echo '!/*' > $FILES_TO_CHECKOUT
|
||
|
echo '/src/interfaces/libpq/*' >> $FILES_TO_CHECKOUT
|
||
|
echo '!/src/interfaces/libpq/*/*' >> $FILES_TO_CHECKOUT
|
||
|
echo '/src/common/*' >> $FILES_TO_CHECKOUT
|
||
|
echo '!/src/port/*/*' >> $FILES_TO_CHECKOUT
|
||
|
echo '/src/port/*' >> $FILES_TO_CHECKOUT
|
||
|
echo '/src/include/*' >> $FILES_TO_CHECKOUT
|
||
|
|
||
|
git config core.sparsecheckout true
|
||
|
git checkout $1
|
||
|
git read-tree -mu HEAD
|