class Raykit::Git::Repository

def branches

The branches for the git repository
def branches
    results = Array.new
    update_local_clone_directory
    if(Dir.exist?(local_clone_directory))
        Dir.chdir(local_clone_directory) do
            `git branch`.split('\n').each{|line|
                branch = line.gsub('*','').strip
                results.insert(-1,branch) if(branch.length > 0)
            }
        end
    end
    results
end