class Git::Worktree
Attributes
Public Class Methods
Source
# File lib/git/worktree.rb, line 11 def initialize(base, dir, gcommit = nil) @full = dir @full += ' ' + gcommit if !gcommit.nil? @base = base @dir = dir @gcommit = gcommit end
Public Instance Methods
Source
# File lib/git/worktree.rb, line 24 def add @base.lib.worktree_add(@dir, @gcommit) end