Method: Git::Lib#worktree_add
- Defined in:
- lib/git/lib.rb
#worktree_add(dir, commitish = nil)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
739 740 741 742 743 |
# File 'lib/git/lib.rb', line 739 def worktree_add(dir, commitish = nil) return worktree_command('worktree', 'add', dir, commitish) unless commitish.nil? worktree_command('worktree', 'add', dir) end |