Arnon Keereena
c4b7ce3716
Remove branch iterator caching
...
Add support for sequencing to allow syntax
for commit in repo.commits(in: branch)
2017-05-04 09:33:14 +02:00
Arnon Keereena
8088f8b11f
Return error here because something is happening
...
but not running out of commits
2017-05-04 08:26:31 +02:00
Arnon Keereena
42d92319ef
Remove unnecessary function
2017-05-04 08:22:23 +02:00
Arnon Keereena
d09d1f49b3
Merge develop to master
2017-05-02 21:35:17 +02:00
Arnon Keereena
46cad0e668
Remove unnecessary property, use the OID as should be
2017-05-02 21:34:57 +02:00
Arnon Keereena
500ae6dc90
Remove unnecessary property, use the OID as should be
2017-05-02 21:27:48 +02:00
Arnon Keereena
c7b8ae914f
Merge develop to master
2017-05-01 17:20:38 +02:00
Arnon Keereena
4dd24cad97
CommitIterator now not hold branch as reference.
...
Make private var instead to prevent unexpected state change
from external influence. Uses enum instead of tuple
of stop and error to indicate state of Git command result.
2017-05-01 17:19:05 +02:00
Arnon Keereena
23194dd7a3
Merge develop into master
2017-04-29 08:56:05 +02:00
Arnon Keereena
915b07f4a9
Remove warnings that causes CI to fail
2017-04-29 08:55:56 +02:00
Arnon Keereena
96e9cf61a7
Merge develop to master
2017-04-28 22:20:01 +02:00
Arnon Keereena
aa9f066e04
Passing pointer through block doesn't work as expected
...
turns back to normal procedural calls, iterator tested.
2017-04-28 22:19:45 +02:00
Arnon Keereena
de2984c695
Move CommitIterator to its own file, untested
2017-04-28 09:44:10 +02:00
Arnon Keereena
dc2edddac6
Remove the old allCommits function
2017-04-28 09:42:19 +02:00
Arnon Keereena
e69e5ca153
Refactor allCommits to return CommitIterator instead,
...
as loading all commits in one go is not good for
repository with a lot of commits
2017-04-28 09:41:46 +02:00
Arnon Keereena
23abfc6f6a
Merge develop to master
2017-04-27 08:29:06 +02:00
Arnon Keereena
3b04a2b94a
Add comment
2017-04-27 08:29:03 +02:00
Arnon Keereena
66866049ee
Merge develop to master
2017-04-27 08:26:47 +02:00
Arnon Keereena
9eb91a8605
Add tests for modified code.
...
Fix some errors.
2017-04-27 08:26:34 +02:00
Arnon Keereena
18ee34f681
Fix per comment
...
- Move allCommits to Repository class
- Remove unwanted spaces
- Restore --lenient flag, even though it still produce compile error
2017-04-27 07:56:56 +02:00
Matt Rubin
baa619520d
Merge pull request #90 from SwiftGit2/dependencies
...
Update dependencies
2017-04-26 00:20:23 -04:00
Matt Rubin
d6d9d77488
Update dependencies to the latest versions
2017-04-25 23:49:02 -04:00
Arnon Keereena
43d26912a1
Update Quick, Result & ZipArchive
2017-04-25 21:17:33 +02:00
Arnon Keereena
0785b70123
Merge develop into master
2017-04-25 20:53:21 +02:00
Arnon Keereena
20365249f9
Add ability to get all commits from a branch
2017-04-25 20:52:59 +02:00
Matt Rubin
9a2f5a5b31
Merge pull request #88 from mattrubin/lower-case-enum-cases
...
Convert enum case names to lower camel case
2017-04-24 14:13:34 -04:00
Matt Rubin
3c5ffa2ba5
Re-enable the identifier_name SwiftLint rule
2017-04-24 12:52:30 -04:00
Matt Rubin
6257318a34
Merge origin/master into lower-case-enum-cases
2017-04-24 12:50:33 -04:00
Matt Rubin
f2d94c4322
Merge pull request #86 from mattrubin/swiftlint
...
Improvements for SwiftLint 0.18
2017-04-24 12:49:51 -04:00
Matt Rubin
d1d0118bba
Remove the empty associated value on Credentials.default
...
The empty payload is unnecessary, and it will be removed in a future version of Swift:
https://github.com/apple/swift-evolution/blob/master/proposals/0155-normalize-enum-case-representation.md#alternative-payload-less-case-declaration
2017-04-24 11:48:06 -04:00
Matt Rubin
c57ea50b85
Use the Xcode 8.3 Travis image, which has SwiftLint 0.18.1 installed
...
https://blog.travis-ci.com/2017-04-19-xcode-832-is-here
2017-04-24 11:24:46 -04:00
Matt Rubin
5b41c977d2
Convert enum case names to lower camel case
...
https://swift.org/documentation/api-design-guidelines/#follow-case-conventions
2017-04-24 00:19:27 -04:00
Matt Rubin
4cadad501e
Disable Swiftlint identifier_name rule, and enable several other rules
2017-04-23 23:54:16 -04:00
Matt Rubin
bb387eb7ab
SwiftLint: Returning Void in a function declaration is redundant
2017-04-23 23:25:36 -04:00
Matt Rubin
f10c8d03dd
Run the SwiftLint build phase with the --lenient flag
...
Running SwiftLint in "lenient" mode will only generate warnings, preventing the linter from causing the build to fail.
https://github.com/realm/SwiftLint/issues/1322
2017-04-23 23:24:53 -04:00
Jake Van Alstyne
31a0a3dd30
add an implementation of git_repository_init
2017-01-21 14:53:13 -07:00
Matt Rubin
b074eff7d7
Merge pull request #83 from SwiftGit2/release-badge
...
Fix the release badge in the README
2017-01-07 17:56:49 -05:00
Matt Rubin
e42270372c
Fix the release badge in the README
2017-01-07 16:41:39 -05:00
Matt Diephouse
4864cc4753
Merge pull request #82 from SwiftGit2/swift3-readme
...
Update README.md for Swift 3
2017-01-07 14:44:46 -05:00
Matt Diephouse
2e7a0ce1cd
Update README.md
2017-01-07 14:44:28 -05:00
Matt Diephouse
36f934d2b6
Merge pull request #78 from mattrubin/guard
...
Use guard-else instead of if statements when checking git error codes
2016-12-24 01:48:44 -05:00
Matt Rubin
98c0733592
Merge pull request #79 from mattrubin/swiftlint
...
Update lint configuration for Swiftlint 0.15
2016-12-23 23:56:03 -05:00
Matt Rubin
992ba7bf8a
Merge master into guard
2016-12-23 23:51:14 -05:00
Matt Rubin
545bf12645
Merge pull request #77 from mattrubin/whitespace
...
Remove trailing whitespace on blank lines
2016-12-23 18:25:25 -05:00
Matt Rubin
62619af5e8
Clean up some whitespace around = operators
2016-12-23 18:09:56 -05:00
Matt Rubin
4741790d2c
Wrap lines longer than 120 characters
2016-12-23 18:01:28 -05:00
Matt Rubin
e148cd2530
Enable new opt-in SwiftLint rules
2016-12-23 18:01:28 -05:00
Matt Rubin
baeb5cb3e2
Ignore unused closure parameters
2016-12-23 18:01:28 -05:00
Matt Rubin
28c01d4943
Use guard-else instead of if statements when checking git error codes
...
The compiler will warn if a guard statement falls through without exiting the scope.
2016-12-23 17:57:35 -05:00
Matt Rubin
a0f0e49ee6
Remove trailing whitespace on newlines
2016-12-23 17:48:54 -05:00