summaryrefslogtreecommitdiffstats
path: root/EXAMPLES
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-11 11:32:57 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-11 11:32:57 -0800
commit070381bb456b25f3e867e9b23b78911190c6b369 (patch)
tree140a03e14e0601e941f3b5192f9a81d362565d6e /EXAMPLES
parent440ec51cded64d49c5c2aae949401dd60e4b876d (diff)
downloadthird_party-ruby-git-070381bb456b25f3e867e9b23b78911190c6b369.tar.gz
third_party-ruby-git-070381bb456b25f3e867e9b23b78911190c6b369.tar.xz
third_party-ruby-git-070381bb456b25f3e867e9b23b78911190c6b369.zip
added remove and reset
Diffstat (limited to 'EXAMPLES')
-rw-r--r--EXAMPLES17
1 files changed, 13 insertions, 4 deletions
diff --git a/EXAMPLES b/EXAMPLES
index 0105611..22aab6c 100644
--- a/EXAMPLES
+++ b/EXAMPLES
@@ -79,18 +79,27 @@ g.config('user.email', 'email@email.com')
g.add('.')
g.add([file1, file2])
+
+g.remove('file.txt')
+g.remove(['file.txt', 'file2.txt'])
g.commit('message')
g.commit_all('message')
-
-***** IMPLEMENTED *****
-
-g.remove('file.txt').and_file
+g = Git.clone(repo, 'myrepo')
+Dir.chdir('myrepo') do
+ new_file('test-file', 'blahblahblah')
+ g.status.untracked.each do |file|
+ puts file.blob(:index).contents
+ end
+end
g.reset # defaults to HEAD
g.reset_hard(Git::Commit)
+
+***** IMPLEMENTED *****
+
g.branch('new_branch')
g.branch('new_branch').delete