Add getPath helper

This commit is contained in:
Kevin Sawicki
2012-10-25 15:20:12 -07:00
committed by Corey Johnson
parent cbba58c30e
commit 8e8ab4ff94
4 changed files with 34 additions and 4 deletions

View File

@@ -1,11 +1,12 @@
module.exports =
class Git
constructor: (@repoPath) ->
@repo = new GitRepository(@repoPath)
constructor: (path) ->
@repo = new GitRepository(path)
getHead: ->
@repo.getHead() || ''
getPath: -> @repo.getPath()
getHead: -> @repo.getHead() || ''
getShortHead: ->
head = @getHead()