Commit Graph

125 Commits

Author SHA1 Message Date
Matt Rubin
e65206c00c Migrate all targets to Swift 4.2 2019-04-11 19:42:48 -04:00
Etienne Samson
6d7cde7fe7 Update libgit2 to 0.27.7 2018-10-27 03:34:54 +02:00
Christian Tietze
455ac1143f add specs for Repository.isValid 2018-09-26 08:43:09 +02:00
Yifei Teng
84d4ae1e33 cleanup and persist index to disk during add() so that commit() can pick up the new index 2018-05-02 11:28:07 -05:00
Yifei Teng
3d6094b741 add test for commit 2018-05-02 11:28:07 -05:00
Yifei Teng
b6e94b291c add tests for git-add 2018-04-30 19:43:40 -05:00
Jake Van Alstyne 🎩
0397b29d24 refactor diff calls to be memory safe
- use existing `withGitObject` method
- introduce extended version that can handle multiple git objects for the purpose of handling multiple parents
2018-01-08 20:38:32 -07:00
Jake Van Alstyne 🎩
9a9b7a9be8 More detailed tests 2017-12-17 14:33:01 -07:00
Jake Van Alstyne 🎩
ecb5263f6b fixes to tests that used guanaco 2017-12-16 15:01:06 -07:00
Jake Van Alstyne 🎩
f98664ecb3 Merge branch 'master' into develop
Conflicts:
	SwiftGit2/CommitIterator.swift
	SwiftGit2Tests/RepositorySpec.swift
2017-12-16 14:41:06 -07:00
Chris Eidhof
225f391171 Fetching remotes 2017-12-16 15:06:54 +01:00
Jake Van Alstyne 🎩
d8ee830173 Merge branch 'master' into develop 2017-12-15 13:40:42 -07:00
Matt Diephouse
c7bf00201e Remove trailing whitespace 2017-12-15 15:02:34 -05:00
Matt Diephouse
09ac23471b Fix build with Xcode 9.2 2017-12-14 15:08:17 -05:00
Jake Van Alstyne 🎩
db0a955e03 clean up various xcode warnings 2017-11-17 16:49:16 -07:00
Jake Van Alstyne 🎩
6a59e6557e split out diff tests into a separate describe, rename status describe 2017-09-15 19:32:13 -06:00
Jake Van Alstyne 🎩
42619872f8 simpler function name for getting status 2017-09-01 16:43:33 -06:00
Jake Van Alstyne 🎩
99b638131c simpler function name for getting diffs 2017-09-01 16:42:37 -06:00
Jake Van Alstyne 🎩
edb1906231 validate success of git_status_list_new 2017-09-01 16:39:07 -06:00
Jake Van Alstyne 🎩
6fc4a0c7bb improve tests, make clear some of the status/diff data is optional, clearer naming 2017-08-22 13:42:06 -06:00
Jake Van Alstyne 🎩
b582e1e642 Add diff structs for parsing git_diff_deltas into Swift, more testing 2017-08-20 15:48:17 -06:00
Jake Van Alstyne 🎩
c4388f0a07 stub out getting the status of a commit compared with its parent, including basic testing 2017-08-18 15:36:40 -06:00
Jake Van Alstyne 🎩
82e90d3c75 stub out status testing 2017-08-17 16:48:58 -06:00
Jake Van Alstyne
5d0255b84c Merge branch 'master' into create-new-repository 2017-08-09 14:01:22 -06:00
Jake Van Alstyne 🎩
7ecfb710d3 rename createAt to be in line with modern swift coding style and add a test 2017-08-09 13:58:55 -06:00
Arnon Keereena
8d1aaa672f Changing from using if to evaluates returned enum
to switch case syntax instead
2017-05-04 22:41:32 +02:00
Arnon Keereena
9520fa03a6 Adjust weird indentation 2017-05-04 09:36:02 +02:00
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
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
915b07f4a9 Remove warnings that causes CI to fail 2017-04-29 08:55:56 +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
9eb91a8605 Add tests for modified code.
Fix some errors.
2017-04-27 08:26:34 +02:00
Arnon Keereena
20365249f9 Add ability to get all commits from a branch 2017-04-25 20:52:59 +02: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
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
baeb5cb3e2 Ignore unused closure parameters 2016-12-23 18:01:28 -05:00
Matt Rubin
a0f0e49ee6 Remove trailing whitespace on newlines 2016-12-23 17:48:54 -05:00
Matt Rubin
c746c720c3 Remove the OID argument label for object getters 2016-12-22 23:36:25 -05:00
Matt Rubin
6da9e7810c Argument labels "withName:" -> "named:" 2016-12-22 18:36:58 -05:00
Matt Rubin
597a2fd000 Rename mapGit* methods back to withGit* 2016-12-21 23:37:21 -05:00
Matt Rubin
b94b975236 Fix method description strings in RepositorySpec 2016-12-18 23:24:57 -05:00
Matt Rubin
afbd6672cd Rename argument labels to refer to OID parameters as "Identifiers"
https://swift.org/documentation/api-design-guidelines/#name-according-to-roles
2016-12-18 23:24:26 -05:00
Matt Rubin
21ee7a44c5 Convert test helper free functions to private extension methods 2016-12-18 22:28:00 -05:00
Matt Rubin
93ddcd3e9a Apply API guidelines to test helper functions 2016-12-18 18:11:04 -05:00
Matt Rubin
2a90c7b5f3 Update Repository methods to match the API design guidelines 2016-12-18 18:11:04 -05:00
Matt Rubin
755dfe08f6 Use non-Optional pointers wherever possible 2016-12-17 00:37:50 -05:00
Matt Rubin
003464dde8 Replace NSTimeZone with TimeZone 2016-12-17 00:36:00 -05:00
Matt Rubin
b6c3c795bc Replace NSDate with Date wherever possible 2016-12-17 00:35:55 -05:00