6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-06 16:52:57 +00:00

Commit Graph

  • 7e42b1e3e9 Use the configured default host when host is empty after parsing the URL Grzegorz Dlugoszewski 2020-05-30 12:45:07 +02:00
  • 1798816b6a Enable accessing config from gitconfig file or env variables Grzegorz Dlugoszewski 2020-05-29 21:19:55 +02:00
  • b72f984512 Don't show usage on clone error Grzegorz Dlugoszewski 2020-05-29 10:50:52 +02:00
  • 3335c81aa4 Refactor tests by removing redundant TestRepo struct Grzegorz Dlugoszewski 2020-05-29 10:11:08 +02:00
  • 0e551ea342 Remove old dependencies from go.mod Grzegorz Dlugoszewski 2020-05-28 16:41:23 +02:00
  • 1bc3928cf5 Finish refactoring by replacing old pkg with new one Grzegorz Dlugoszewski 2020-05-28 16:34:44 +02:00
  • ca9be3d98f Add ahead/behind detection, clean up tests Grzegorz Dlugoszewski 2020-05-28 16:21:07 +02:00
  • 0b371341e7 Add branch status and tests Grzegorz Dlugoszewski 2020-05-27 20:30:04 +02:00
  • fd49a9e41d Remove in-memory tests and just use temp dirs Grzegorz Dlugoszewski 2020-05-27 14:49:28 +02:00
  • c628817c22 Add quiet flag to Clone method Grzegorz Dlugoszewski 2020-05-27 13:02:06 +02:00
  • b94e655d4a Refactor Clone method to use go-git Grzegorz Dlugoszewski 2020-05-27 12:54:49 +02:00
  • 616b476ce1 [WIP] Replace git2go with go-git Grzegorz Dlugoszewski 2020-05-26 21:35:57 +02:00
  • 632fb4a9c8 Remove git2go and replace it with go-git Grzegorz Dlugoszewski 2020-05-26 11:34:32 +02:00
  • 7ab4489dfe Add ssh credentials callback when cloning via ssh protocol Grzegorz Dlugoszewski 2020-05-26 10:34:36 +02:00
  • a530b1506c Refactor URL parsing so it's not being called twice Grzegorz Dlugoszewski 2020-05-22 15:53:44 +02:00
  • 2b622b99fe Parse URL and create a repo dir inside CloneRepo function Grzegorz Dlugoszewski 2020-05-22 12:19:32 +02:00
  • 2bb6f06962 Add function for creating dirs for cloned repos Grzegorz Dlugoszewski 2020-05-22 10:33:15 +02:00
  • 3cdd1eddf4 Add a small URL corner case Grzegorz Dlugoszewski 2020-05-22 09:57:01 +02:00
  • 02e32a5543 Handle scp-like syntax in URL parsing, add more tests Grzegorz Dlugoszewski 2020-05-22 08:52:08 +02:00
  • bb3a243829 Add URL parsing function and its unit tests Grzegorz Dlugoszewski 2020-05-21 22:48:28 +02:00
  • 91cf26ef27 Refactor Repo code and tests Grzegorz Dlugoszewski 2020-05-20 14:44:59 +02:00
  • ac765c9c06 Add cobra commands and update project folder structure Grzegorz Dlugoszewski 2020-05-20 11:37:16 +02:00
  • 4b8b1d52f0 Add Fetch function and test repo being behind upstream Grzegorz Dlugoszewski 2020-05-19 21:25:06 +02:00
  • 307b2cd4a2 Add branch checkout helper and test branches being ahead of upstream Grzegorz Dlugoszewski 2020-05-19 17:32:04 +02:00
  • 4bf531be9c Convert branch tests to table driven Grzegorz Dlugoszewski 2020-05-19 14:22:38 +02:00
  • dfc8437408 Add CloneRepo function and unit tests for cloned repos status Grzegorz Dlugoszewski 2020-05-19 14:12:38 +02:00
  • a0f09ef74d Simplify RepoStatus unit tests Grzegorz Dlugoszewski 2020-05-19 11:22:41 +02:00
  • 17ec470340 Add upstream info to branch status, simplify unit tests Grzegorz Dlugoszewski 2020-05-19 10:24:25 +02:00
  • ad7c3a4afc Change repo status to struct instead of map Grzegorz Dlugoszewski 2020-05-18 23:13:34 +02:00
  • 9757a96d34 Add a basic branch status parser Grzegorz Dlugoszewski 2020-05-18 22:53:06 +02:00
  • 242d17ceb5 Use t.Cleanup instead of defer to cleanup after tests Grzegorz Dlugoszewski 2020-05-18 22:49:33 +02:00
  • 4ce4381c57 Add a basic branch iterator for getting branches state Grzegorz Dlugoszewski 2020-05-18 17:35:32 +02:00
  • 13f69bb4b5 Simplify error checking in test helper functions Grzegorz Dlugoszewski 2020-05-18 16:10:31 +02:00
  • 0ed1c2147d Add function mapping libgit's statusList entries to RepoStatus slice Grzegorz Dlugoszewski 2020-05-18 14:54:21 +02:00
  • acdb877527 Add status checking function and basic unit tests Grzegorz Dlugoszewski 2020-05-18 13:56:45 +02:00
  • 14614b3549 Add helpers ability to create multiple commits Grzegorz Dlugoszewski 2020-05-18 13:55:57 +02:00
  • b2e5f9178b Rename test helpers file Grzegorz Dlugoszewski 2020-05-18 13:25:46 +02:00
  • 271fcbed77 Use pkg/errors package for wrapping errors Grzegorz Dlugoszewski 2020-05-18 11:39:45 +02:00
  • 6ff52a1540 Add helper functions for creating test repos Grzegorz Dlugoszewski 2020-05-17 22:57:27 +02:00
  • 77636e2463 Add a simple unit test with a temp repository Grzegorz Dlugoszewski 2020-05-16 15:22:39 +02:00
  • e0923a64ec Fix typos Grzegorz Dlugoszewski 2020-05-16 14:18:00 +02:00
  • 30205fbbdf Add go modules and instructions for static building Grzegorz Dlugoszewski 2020-05-16 14:10:35 +02:00
  • 653873c238 Add git2go submodule Grzegorz Dlugoszewski 2020-05-15 14:43:59 +02:00
  • 8156f1b294 Initial commit Grzegorz Dlugoszewski 2020-05-15 10:54:48 +00:00