README.md in rjgit-0.3.1 vs README.md in rjgit-0.3.2
- old
+ new
@@ -65,10 +65,11 @@
### Getting commits
```ruby
repo.commits('master')
repo.commits('959329025f67539fb82e76b02782322fad032821')
+repo.head
commit = repo.commits('master').first # a Commit object; try commit.actor, commit.id, etc.
# Similarly for getting tags, branches, trees (directories), and blobs (files).
```
### Finding a single object by SHA
@@ -94,11 +95,11 @@
tree = repo.find("959329025f67539fb82e76b02782322fad032000", :tree) #...or by SHA
tree.data # List the tree's contents (blobs and trees). Also tree.id, tree.mode, etc.
tree.each {|entry| puts entry.inspect} # Loop over the Tree's children (Blobs and Trees)
tree.trees # An array of the Tree's child Trees
tree.blobs # An array of the Tree's child Blobs
-Porcelain::ls_tree(repo, repo.tree("example"), :print => true, :recursive => true, :branch => 'mybranch') # Outputs the Tree's contents to $stdout. Faster for recursive listing than Tree#each. Passing nil as the second argument lists the entire repository. Branch defaults to HEAD.
+Porcelain::ls_tree(repo, repo.tree("example"), :print => true, :recursive => true, :ref => 'mybranch') # Outputs the Tree's contents to $stdout. Faster for recursive listing than Tree#each. Passing nil as the second argument lists the entire repository. ref defaults to HEAD.
```
### Creating blobs and trees from scratch
```ruby
blob = Blob.new_from_string(repo, "Contents of the new blob.") # Inserts the blob into the repository, returns an RJGit::Blob
@@ -158,10 +159,10 @@
jruby --ng -S rake
```
License
-------
-Copyright (c) 2011 - 2013, Team Repotag
+Copyright (c) 2011 - 2014, Team Repotag
(Modified BSD License)
All rights reserved.