6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-04 19:09:45 +00:00
Commit Graph

225 Commits

Author SHA1 Message Date
Grzegorz Dlugoszewski
bb3a243829 Add URL parsing function and its unit tests 2020-05-21 22:48:28 +02:00
Grzegorz Dlugoszewski
91cf26ef27 Refactor Repo code and tests
- Add Repo as a separate type
- Merge together repo status and branches status
- Load status on repo opening
2020-05-20 14:44:59 +02:00
Grzegorz Dlugoszewski
ac765c9c06 Add cobra commands and update project folder structure 2020-05-20 11:37:16 +02:00
Grzegorz Dlugoszewski
4b8b1d52f0 Add Fetch function and test repo being behind upstream 2020-05-19 21:25:06 +02:00
Grzegorz Dlugoszewski
307b2cd4a2 Add branch checkout helper and test branches being ahead of upstream 2020-05-19 17:32:04 +02:00
Grzegorz Dlugoszewski
4bf531be9c Convert branch tests to table driven 2020-05-19 14:22:38 +02:00
Grzegorz Dlugoszewski
dfc8437408 Add CloneRepo function and unit tests for cloned repos status 2020-05-19 14:12:38 +02:00
Grzegorz Dlugoszewski
a0f09ef74d Simplify RepoStatus unit tests 2020-05-19 11:22:41 +02:00
Grzegorz Dlugoszewski
17ec470340 Add upstream info to branch status, simplify unit tests 2020-05-19 10:24:25 +02:00
Grzegorz Dlugoszewski
ad7c3a4afc Change repo status to struct instead of map 2020-05-18 23:13:34 +02:00
Grzegorz Dlugoszewski
9757a96d34 Add a basic branch status parser 2020-05-18 22:53:06 +02:00
Grzegorz Dlugoszewski
242d17ceb5 Use t.Cleanup instead of defer to cleanup after tests 2020-05-18 22:52:09 +02:00
Grzegorz Dlugoszewski
4ce4381c57 Add a basic branch iterator for getting branches state 2020-05-18 17:35:32 +02:00
Grzegorz Dlugoszewski
13f69bb4b5 Simplify error checking in test helper functions
Helper functions check for errors and call Fatal if necessary on their own. This way we don't have to check for errors again in actual tests.
2020-05-18 16:10:31 +02:00
Grzegorz Dlugoszewski
0ed1c2147d Add function mapping libgit's statusList entries to RepoStatus slice 2020-05-18 14:54:21 +02:00
Grzegorz Dlugoszewski
acdb877527 Add status checking function and basic unit tests 2020-05-18 13:56:45 +02:00
Grzegorz Dlugoszewski
14614b3549 Add helpers ability to create multiple commits 2020-05-18 13:55:57 +02:00
Grzegorz Dlugoszewski
b2e5f9178b Rename test helpers file 2020-05-18 13:25:46 +02:00
Grzegorz Dlugoszewski
271fcbed77 Use pkg/errors package for wrapping errors 2020-05-18 11:39:45 +02:00
Grzegorz Dlugoszewski
6ff52a1540 Add helper functions for creating test repos
Also add a rough todo list of features in readme
2020-05-17 22:57:27 +02:00
Grzegorz Dlugoszewski
77636e2463 Add a simple unit test with a temp repository 2020-05-16 15:22:39 +02:00
Grzegorz Dlugoszewski
e0923a64ec Fix typos 2020-05-16 14:18:00 +02:00
Grzegorz Dlugoszewski
30205fbbdf Add go modules and instructions for static building 2020-05-16 14:11:27 +02:00
Grzegorz Dlugoszewski
653873c238 Add git2go submodule 2020-05-15 14:43:59 +02:00
Grzegorz Dlugoszewski
8156f1b294 Initial commit 2020-05-15 10:54:48 +00:00