def delete_branch(branch, path = Dir.pwd, opts = { :force => false })
      g = MiniGit.new(path)
      error "'#{branch}' is not a valid existing branch" unless list_branch(path).include?( branch )
      g.branch ((opts[:force]) ? :D : :d) => branch.to_s
    end
def delete_branch(branch, path = Dir.pwd, opts = { :force => false })
      g = MiniGit.new(path)
      error "'#{branch}' is not a valid existing branch" unless list_branch(path).include?( branch )
      g.branch ((opts[:force]) ? :D : :d) => branch.to_s
    end
Delete a branch.