README.md in acts_as_git-0.1.1 vs README.md in acts_as_git-0.2.0
- old
+ new
@@ -22,11 +22,11 @@
# store
post = Post.new # create the directory `self.repodir` if not exist, and init repo.
post.body = 'content'
post.save # save the content into the file of `#filename`
-post.get_commit
+post.current
=> COMMIT_HASH_HOGE
# load
post = Post.first
puts post.body
@@ -37,10 +37,10 @@
post.is_changed?
=> true
post.save
post.is_changed?
=> false
-post.get_commit
+post.current
=> COMMIT_HASH_FUGA
puts post.body
=> 'content2'
post.checkout(COMMIT_HASH_HOGE)
puts post.body