diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-11 17:59:18 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-11 17:59:18 -0800 |
commit | 646304a6e7c3b2c442a0a7db995629e7009c3a14 (patch) | |
tree | 0475bc78d2f805a36c91a898804e099634d8c54a /lib | |
parent | 31b4f2b80616f570c83ed62d20f8b14ec5ba425b (diff) | |
download | third_party-ruby-git-646304a6e7c3b2c442a0a7db995629e7009c3a14.tar.gz third_party-ruby-git-646304a6e7c3b2c442a0a7db995629e7009c3a14.tar.xz third_party-ruby-git-646304a6e7c3b2c442a0a7db995629e7009c3a14.zip |
added documentation and a license file
Diffstat (limited to 'lib')
-rw-r--r-- | lib/git/branch.rb | 4 | ||||
-rw-r--r-- | lib/git/lib.rb | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/git/branch.rb b/lib/git/branch.rb index 4b4ecfc..7cef94e 100644 --- a/lib/git/branch.rb +++ b/lib/git/branch.rb @@ -72,6 +72,10 @@ module Git end end + def to_a + [@full] + end + def to_s @full end diff --git a/lib/git/lib.rb b/lib/git/lib.rb index 3f97929..5bb2e2b 100644 --- a/lib/git/lib.rb +++ b/lib/git/lib.rb @@ -257,7 +257,7 @@ module Git command('checkout', arr_opts) end - def merge(branch, message = nil) + def merge(branch, message = nil) arr_opts = [] arr_opts << ["-m '#{message}'"] if message arr_opts << branch.to_a.join(' ') @@ -330,7 +330,7 @@ module Git if $?.exitstatus == 1 && out == '' return '' end - raise Git::GitExecuteError.new(git_cmd + out.to_s) + raise Git::GitExecuteError.new(git_cmd + ':' + out.to_s) end out end |