Method: Git::Lib#show
- Defined in:
- lib/git/lib.rb
#show(objectish = nil, path = nil) ⇒ String
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.
Shows objects
1076 1077 1078 1079 1080 1081 1082 |
# File 'lib/git/lib.rb', line 1076 def show(objectish = nil, path = nil) arr_opts = [] arr_opts << (path ? "#{objectish}:#{path}" : objectish) command('show', *arr_opts.compact, chomp: false) end |