Method: Git::Lib#revert
- Defined in:
- lib/git/lib.rb
#revert(commitish, opts = {})
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.
1230 1231 1232 1233 1234 1235 1236 1237 1238 |
# File 'lib/git/lib.rb', line 1230 def revert(commitish, opts = {}) # Forcing --no-edit as default since it's not an interactive session. opts = { no_edit: true }.merge(opts) args = build_args(opts, REVERT_OPTION_MAP) args << commitish command('revert', *args) end |