Commit Graph

474 Commits

Author SHA1 Message Date
Matt Diephouse
c0c382227e
Merge pull request #111 from chriseidhof/remote-fetching
Remote fetching
2017-12-16 12:15:22 -05:00
Chris Eidhof
225f391171 Fetching remotes 2017-12-16 15:06:54 +01:00
Matt Diephouse
d7fff2c643
Merge pull request #112 from SwiftGit2/remove-trailing-whitespace
Remove trailing whitespace
2017-12-15 18:05:09 -05: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
69413a0540
Merge pull request #109 from SwiftGit2/fix-build
Fix build with Xcode 9.2
2017-12-15 14:42:21 -05:00
Matt Diephouse
3f989ab522
Merge pull request #110 from SwiftGit2/building-swiftgit2
Add instructions for building manually
2017-12-15 14:42:09 -05:00
Matt Diephouse
9884657da6 Use Xcode 9.2 on CI 2017-12-14 18:57:21 -05:00
Matt Diephouse
afaa96ec57
Add instructions for building manually 2017-12-14 15:13:55 -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 🎩
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