Module: Grit

Defined in:
lib/gx/enhance.rb

Defined Under Namespace

Classes: Repo

Class Method Summary collapse

Class Method Details

.rebase_dirObject



72
73
74
75
76
77
78
79
80
81
82
# File 'lib/gx/enhance.rb', line 72

def Grit.rebase_dir
  if File.directory? ".dotest"
    return ".dotest"
  elsif File.directory? ".git/rebase"
    return ".git/rebase"
  elsif File.directory? ".git/rebase-apply"
    return ".git/rebase-apply"
  else
    raise "No rebase info found."
  end
end