Method: Gitgo::Git#path
- Defined in:
- lib/gitgo/git.rb
#path(*segments) ⇒ Object
Returns the specified path relative to the git repository (ie the .git directory). With no arguments path returns the repository path.
281 282 283 284 |
# File 'lib/gitgo/git.rb', line 281 def path(*segments) segments.collect! {|segment| segment.to_s } File.join(grit.path, *segments) end |