Merge pull request #8972 from atom/tj-fix-deprecated-reference-in-docs

Update reference to deprecated method Project::getRepo
This commit is contained in:
Thomas Johansen
2015-09-29 08:41:15 +02:00

View File

@@ -10,8 +10,8 @@ Task = require './task'
# Extended: Represents the underlying git operations performed by Atom.
#
# This class shouldn't be instantiated directly but instead by accessing the
# `atom.project` global and calling `getRepo()`. Note that this will only be
# available when the project is backed by a Git repository.
# `atom.project` global and calling `getRepositories()`. Note that this will
# only be available when the project is backed by a Git repository.
#
# This class handles submodules automatically by taking a `path` argument to many
# of the methods. This `path` argument will determine which underlying
@@ -20,7 +20,7 @@ Task = require './task'
# For a repository with submodules this would have the following outcome:
#
# ```coffee
# repo = atom.project.getRepo()
# repo = atom.project.getRepositories()[0]
# repo.getShortHead() # 'master'
# repo.getShortHead('vendor/path/to/a/submodule') # 'dead1234'
# ```
@@ -30,7 +30,7 @@ Task = require './task'
# ### Logging the URL of the origin remote
#
# ```coffee
# git = atom.project.getRepo()
# git = atom.project.getRepositories()[0]
# console.log git.getOriginURL()
# ```
#