Skip to content

Commit

Permalink
commit-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Mou committed Apr 12, 2019
1 parent 47f574e commit ee58d42
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions commit-tree
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -e

echo tree $1 > .zit/commit.tmp
shift
while [[ $1 == -p ]]; do
echo parent $2 >> .zit/commit.tmp
shift; shift
done
echo author "Joe Mou <[email protected]> $(date +'%s %z')" >> .zit/commit.tmp
echo committer "Joe Mou <[email protected]> $(date +'%s %z')" >> .zit/commit.tmp
echo >> .zit/commit.tmp
cat >> .zit/commit.tmp

./hash-object commit .zit/commit.tmp

0 comments on commit ee58d42

Please sign in to comment.