diff options
author | Eric Goodwin <eric@ericgoodwin.com> | 2008-03-03 10:49:28 -0800 |
---|---|---|
committer | Eric Goodwin <eric@ericgoodwin.com> | 2008-03-03 10:49:28 -0800 |
commit | 55a5e323d241cfbd5a59d9a440c506b24b4c255a (patch) | |
tree | a7d49a125de6c8a1e06af2f7030611589fa82247 /lib/git/branch.rb | |
parent | 8185e202dfe6a70fb04d3eec7826e4ea54866c4a (diff) | |
download | third_party-ruby-git-55a5e323d241cfbd5a59d9a440c506b24b4c255a.tar.gz third_party-ruby-git-55a5e323d241cfbd5a59d9a440c506b24b4c255a.tar.xz third_party-ruby-git-55a5e323d241cfbd5a59d9a440c506b24b4c255a.zip |
Added in the stashes
Diffstat (limited to 'lib/git/branch.rb')
-rw-r--r-- | lib/git/branch.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/git/branch.rb b/lib/git/branch.rb index 6c1bc44..5dc8ec7 100644 --- a/lib/git/branch.rb +++ b/lib/git/branch.rb @@ -5,12 +5,15 @@ module Git @base = nil @gcommit = nil + @stashes = nil def initialize(base, name) @remote = nil @full = name @base = base + @stashes = Git::Stashes.new(@base) + parts = name.split('/') if parts[1] @remote = Git::Remote.new(@base, parts[0]) @@ -25,6 +28,10 @@ module Git @gcommit end + def stashes + @stashes ||= Git::Stashes.new(@base) + end + def checkout check_if_create @base.checkout(@full) |