mirror of
https://github.com/atom/atom.git
synced 2026-02-06 20:55:33 -05:00
Add getPath helper
This commit is contained in:
committed by
Corey Johnson
parent
cbba58c30e
commit
8e8ab4ff94
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user