Commit Graph

363 Commits

Author SHA1 Message Date
Jake Van Alstyne 🎩
a9f79a3b80 address some PR comments 2017-11-17 16:22:37 -07:00
Jake Van Alstyne 🎩
e7b6e4509f for some reason the wrong commit of result got used 2017-11-17 16:12:32 -07:00
Jake Van Alstyne 🎩
efe1d6eeeb update for swift 4.0 nuances 2017-11-10 15:21:35 -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 🎩
8bb6e30ff4 refactor the repository diff to rely on flatmaps to propogate errors 2017-09-15 19:26:31 -06:00
Jake Van Alstyne 🎩
d7154e6f40 init a StatusEntry with an initializer that takes in a git_status_entry 2017-09-08 17:19:05 -06:00
Jake Van Alstyne 🎩
5f4043bb0e On second thought, I believe StatusEntry should not be a sub struct of Diff since it has references to two Diff Deltas but itself is not a Diff and not used by anything contained within Diff. It is conceptually different. 2017-09-08 17:13:05 -06:00
Jake Van Alstyne 🎩
3b9beac923 simplify things by extracting difficult to read libgit2 interactions into helper functions and nest the various Diff structs inside a struct named Diff 2017-09-08 17:10:06 -06:00
Jake Van Alstyne 🎩
0d56e1b1ce these evidently need to be explicitly public since they are internal by default 2017-09-01 17:52:22 -06:00
Jake Van Alstyne 🎩
2cff52a3d3 create an initializer for DiffFile 2017-09-01 17:25:59 -06:00
Jake Van Alstyne 🎩
8730bb2d8d refactor how we initialize Status, let the consumer of this library decide what the different statuses returned by libgit2 mean rather than imposing our own assumptions 2017-09-01 17:22:20 -06:00
Jake Van Alstyne 🎩
046d67ed97 use the DiffFlag struct instead of a UInt32 2017-09-01 17:16:25 -06:00
Jake Van Alstyne 🎩
48b804846f refactor how we initialize a DiffDelta using an initializer 2017-09-01 17:14:15 -06:00
Jake Van Alstyne 🎩
bf2bc2ed88 also should check success of git_status_init_options 2017-09-01 16:45:48 -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 🎩
253cf53d2e no need to have three different private functions doing nearly the same thing, factor them out completely 2017-09-01 16:33:25 -06:00
Jake Van Alstyne 🎩
95c7da4e1b remove 'git' from type names, convert types that should be an optionset 2017-09-01 16:20:00 -06:00
Jake Van Alstyne 🎩
f422571d38 fix whitespace indentation issue 2017-08-22 13:47:55 -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 🎩
2173a68e93 these properties need to be made explicitly public 2017-08-20 15:55:36 -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 🎩
1af59416d9 stub out getting repository status 2017-08-17 16:08:44 -06:00
Matt Diephouse
c5eb8036d0 Merge pull request #101 from jakeva/add-agent-auth
add ssh agent authentication
2017-08-14 09:09:54 -04:00
Jake Van Alstyne 🎩
31680a50a3 rename it sshAgent 2017-08-10 14:53:35 -06:00
Matt Diephouse
593c4069b5 Merge pull request #98 from jakeva/create-new-repository
Create new repository
2017-08-10 08:35:56 -04:00
Jake Van Alstyne 🎩
f635f50b84 incorporate requested changes 2017-08-09 14:52:57 -06:00
Jake Van Alstyne 🎩
242741a950 add ssh agent authentication 2017-08-09 14:17:56 -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
Jake Van Alstyne 🎩
18691cb4e6 update comment regarding createAt method of Repository 2017-08-05 15:37:44 -06:00
Matt Diephouse
06a3b62014 Merge pull request #89 from myste1tainn/master
Add ability to get all commits from a branch
2017-05-04 20:26:18 -04:00
Arnon Keereena
a58f849456 Merge develop to master 2017-05-04 22:41:38 +02: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
dfc2614cb2 Merge develop to master 2017-05-04 09:36:33 +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
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