mirror of
https://github.com/gosticks/SwiftGit2.git
synced 2025-10-16 11:55:34 +00:00
simpler function name for getting status
This commit is contained in:
parent
99b638131c
commit
42619872f8
@ -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]()
|
||||
|
||||
|
||||
@ -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))
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user