diff --git a/SwiftGit2/Repository.swift b/SwiftGit2/Repository.swift index b53c0c3..bd5d903 100644 --- a/SwiftGit2/Repository.swift +++ b/SwiftGit2/Repository.swift @@ -671,7 +671,7 @@ final public class Repository { // MARK: - Status - public func getRepositoryStatus() -> Result<[StatusEntry], NSError> { + public func status() -> Result<[StatusEntry], NSError> { var returnArray = [StatusEntry]() diff --git a/SwiftGit2Tests/RepositorySpec.swift b/SwiftGit2Tests/RepositorySpec.swift index d34085e..005ed39 100644 --- a/SwiftGit2Tests/RepositorySpec.swift +++ b/SwiftGit2Tests/RepositorySpec.swift @@ -649,7 +649,7 @@ class RepositorySpec: QuickSpec { let branch = repo.localBranch(named: "master").value! expect(repo.checkout(branch, strategy: CheckoutStrategy.None)).to(haveSucceeded()) - let status = repo.getRepositoryStatus() + let status = repo.status() expect(status.value?.count).to(equal(0)) @@ -657,7 +657,7 @@ class RepositorySpec: QuickSpec { let branchWithStatus = repoWithStatus.localBranch(named: "master").value! expect(repoWithStatus.checkout(branchWithStatus, strategy: CheckoutStrategy.None)).to(haveSucceeded()) - let statusWithStatus = repoWithStatus.getRepositoryStatus() + let statusWithStatus = repoWithStatus.status() expect(statusWithStatus.value?.count).to(equal(5)) }