simpler function name for getting status

This commit is contained in:
Jake Van Alstyne 🎩 2017-09-01 16:43:33 -06:00
parent 99b638131c
commit 42619872f8
2 changed files with 3 additions and 3 deletions

View File

@ -671,7 +671,7 @@ final public class Repository {
// MARK: - Status // MARK: - Status
public func getRepositoryStatus() -> Result<[StatusEntry], NSError> { public func status() -> Result<[StatusEntry], NSError> {
var returnArray = [StatusEntry]() var returnArray = [StatusEntry]()

View File

@ -649,7 +649,7 @@ class RepositorySpec: QuickSpec {
let branch = repo.localBranch(named: "master").value! let branch = repo.localBranch(named: "master").value!
expect(repo.checkout(branch, strategy: CheckoutStrategy.None)).to(haveSucceeded()) expect(repo.checkout(branch, strategy: CheckoutStrategy.None)).to(haveSucceeded())
let status = repo.getRepositoryStatus() let status = repo.status()
expect(status.value?.count).to(equal(0)) expect(status.value?.count).to(equal(0))
@ -657,7 +657,7 @@ class RepositorySpec: QuickSpec {
let branchWithStatus = repoWithStatus.localBranch(named: "master").value! let branchWithStatus = repoWithStatus.localBranch(named: "master").value!
expect(repoWithStatus.checkout(branchWithStatus, strategy: CheckoutStrategy.None)).to(haveSucceeded()) expect(repoWithStatus.checkout(branchWithStatus, strategy: CheckoutStrategy.None)).to(haveSucceeded())
let statusWithStatus = repoWithStatus.getRepositoryStatus() let statusWithStatus = repoWithStatus.status()
expect(statusWithStatus.value?.count).to(equal(5)) expect(statusWithStatus.value?.count).to(equal(5))
} }