Method: Git::Lib#add
- Defined in:
- lib/git/lib.rb
#add(paths = '.', options = {})
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.
Update the index from the current worktree to prepare the for the next commit
1118 1119 1120 1121 1122 1123 1124 1125 |
# File 'lib/git/lib.rb', line 1118 def add(paths = '.', = {}) args = build_args(, ADD_OPTION_MAP) args << '--' args.concat(Array(paths)) command('add', *args) end |