Class | Grit::Index |
In: |
lib/grit/index.rb
|
Parent: | Object |
current_tree | [RW] | |
repo | [RW] | |
tree | [RW] |
Add a file to the index
+path+ is the path (including filename) +data+ is the binary contents of the file
Returns nothing
Commit the contents of the index
+message+ is the commit message [nil] +parents+ is one or more commits to attach this commit to to form a new head [nil] +actor+ is the details of the user making the commit [nil] +last_tree+ is a tree to compare with - to avoid making empty commits [nil] +head+ is the branch to write this head to [master]