write-tree (192B)
- #!/bin/sh -eu
- SHIT_PATH=$(dirname "$0")
- . $SHIT_PATH/common.sh
- "$SHIT_PATH"/ls-files | while read -r mode sha path
- do
- # TODO: subtrees
- printf "%s %s\0" $mode "$path"
- write_hex "$sha"
- done
git clone https://hacktivis.me/git/mirror/shit.git
write-tree (192B)
- #!/bin/sh -eu
- SHIT_PATH=$(dirname "$0")
- . $SHIT_PATH/common.sh
- "$SHIT_PATH"/ls-files | while read -r mode sha path
- do
- # TODO: subtrees
- printf "%s %s\0" $mode "$path"
- write_hex "$sha"
- done