From 55a5e323d241cfbd5a59d9a440c506b24b4c255a Mon Sep 17 00:00:00 2001 From: Eric Goodwin Date: Mon, 3 Mar 2008 10:49:28 -0800 Subject: Added in the stashes --- lib/git/branch.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/git/branch.rb') 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) -- cgit