Class | Grit::Git |
In: |
lib/grit/git.rb
|
Parent: | Object |
bytes_read | [RW] | |
git_binary | [RW] | |
git_dir | [RW] | |
git_max_size | [RW] | |
git_timeout | [RW] | |
work_tree | [RW] |
Chmod the the file or dir and everything beneath
+file+ is the relative path from the Git dir
Returns nothing
Delete a normal file from the filesystem
+file+ is the relative path from the Git dir
Returns nothing
Check if a normal file exists on the filesystem
+file+ is the relative path from the Git dir
Returns Boolean
Move a normal file
+from+ is the relative path to the current file +to+ is the relative path to the destination file
Returns nothing
Read a normal file from the filesystem.
+file+ is the relative path from the Git dir
Returns the String contents of the file
Write a normal file to the filesystem.
+file+ is the relative path from the Git dir +contents+ is the String content to be written
Returns nothing
Transform Ruby style options into git command line options
+options+ is a hash of Ruby style options
Returns String[]
e.g. ["--max-count=10", "--header"]