logo

shit

Unnamed repository; edit this file 'description' to name the repository. git clone https://hacktivis.me/git/mirror/shit.git

write-tree (192B)


  1. #!/bin/sh -eu
  2. SHIT_PATH=$(dirname "$0")
  3. . $SHIT_PATH/common.sh
  4. "$SHIT_PATH"/ls-files | while read -r mode sha path
  5. do
  6. # TODO: subtrees
  7. printf "%s %s\0" $mode "$path"
  8. write_hex "$sha"
  9. done