~sircmpwn/shit

shit/write-tree -rwxr-xr-x 192 bytes View raw
4bd181c7Drew DeVault Remove obsolete TODO comment a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
#!/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