From 42619872f8f29738f519f772cb06ebff3b987a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jake=20Van=20Alstyne=20=F0=9F=8E=A9?= Date: Fri, 1 Sep 2017 16:43:33 -0600 Subject: [PATCH] simpler function name for getting status --- SwiftGit2/Repository.swift | 2 +- SwiftGit2Tests/RepositorySpec.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)) }