6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-05 03:49:42 +00:00
Commit Graph

79 Commits

Author SHA1 Message Date
Grzegorz Dlugoszewski
a08e80671c Remove the unshallow step from goreleaser
It's not needed because we don't use the release notes generator from goreleaser
2020-06-11 17:15:03 +02:00
Grzegorz Dlugoszewski
62bb5c7d05 Add links to compare releases in changelog 2020-06-11 17:07:22 +02:00
Grzegorz Dlugoszewski
22579690b4 Merge branch 'master' of ssh://github.com/grdl/git-get 2020-06-11 17:00:50 +02:00
Grzegorz Dlugoszewski
8462584093 Create LICENSE 2020-06-11 17:00:14 +02:00
Grzegorz Dlugoszewski
e3c933d9ad Add a changelog 2020-06-11 16:29:05 +02:00
Grzegorz Dlugoszewski
842be5ba60 Fix homebrew description to comply with brew style 2020-06-11 13:16:24 +02:00
Grzegorz Dlugoszewski
8821259eee Fix homebrew release v0.0.3 2020-06-11 12:37:48 +02:00
Grzegorz Dlugoszewski
4a5c93a3da Add goreleaser github workflow v0.0.2 2020-06-11 11:45:11 +02:00
Grzegorz Dlugoszewski
0a71f89811 Add homebrew config to goreleaser 2020-06-11 11:33:06 +02:00
Grzegorz Dlugoszewski
dfef6151d1 Add a --branch flag that specifies which branch or tag to check out after cloning 2020-06-08 21:37:26 +02:00
Grzegorz Dlugoszewski
919359f26f Skip walking directories we don't have permissions to access 2020-06-08 20:06:27 +02:00
Grzegorz Dlugoszewski
4765d943ec Count commits ahead and behind the upstream branch 2020-06-08 17:16:46 +02:00
Grzegorz Dlugoszewski
ee26ddc38f Add a --fetch flag to first fetch from remotes before printing repos status 2020-06-08 14:54:19 +02:00
Grzegorz Dlugoszewski
e5c3285040 Add output flag and simple tree option 2020-06-08 14:00:59 +02:00
Grzegorz Dlugoszewski
f3d0df1bfd Refactor packages structure
- Isolate files into their own packages
- Create new printer package and interface
- Refactor Repo stuct to embed the go-git *Repository directly
- Simplify cmd package
2020-06-08 12:07:03 +02:00
Grzegorz Dlugoszewski
29c21cb78d Improve the implementation of the smart tree printer
It now correctly indents lines with branches status
2020-06-06 16:56:42 +02:00
Grzegorz Dlugoszewski
13c03bc2ef Add new tree implementation and remove treeprint dependency 2020-06-06 10:00:11 +02:00
Grzegorz Dlugoszewski
1f707ad7db Test new tree implementation of repos list 2020-06-04 20:26:27 +02:00
Grzegorz Dlugoszewski
239ff699a3 Add ssh key authentication when cloning via ssh 2020-06-04 15:45:46 +02:00
Grzegorz Dlugoszewski
f4636a3a73 Fix reading config values from cli flags
* InitConfig needs to be called after cmd.Execute, otherwise the flags are not parsed yet
* Values need to be checked also for emptiness, not only for being unset
2020-06-04 13:02:24 +02:00
Grzegorz Dlugoszewski
7d2c9b1954 Fix tests after changing the way branches are ordered
"master" branch is now always on top.
2020-06-04 12:24:37 +02:00
Grzegorz Dlugoszewski
f2d8496136 Refactor config provider using viper 2020-06-04 11:38:01 +02:00
Grzegorz Dlugoszewski
205eecc073 Update branch name sorting to keep master always on top 2020-06-03 16:39:22 +02:00
Grzegorz Dlugoszewski
142fdf1844 Add printing status of multiple branches 2020-06-03 16:21:01 +02:00
Grzegorz Dlugoszewski
64dfea5a7f Add a list flag and basic rendering of repos status 2020-06-03 15:59:51 +02:00
Grzegorz Dlugoszewski
b7bd30c960 Check if repos root exists and is not empty before opening repos 2020-06-03 13:25:01 +02:00
Grzegorz Dlugoszewski
8a79dcfd9f Add checking what is the current branch and if HEAD is detached 2020-06-02 16:46:10 +02:00
Grzegorz Dlugoszewski
1406aa78c6 Load gitignore patterns also from files declared in excludesfile 2020-06-02 14:34:10 +02:00
Grzegorz Dlugoszewski
abf220355c Add basic printing of all repos status 2020-06-02 12:40:22 +02:00
Grzegorz Dlugoszewski
7b99d65797 Skip generating the changelog 2020-06-01 09:45:49 +02:00
Grzegorz Dlugoszewski
c830bede7f Add GitHub relase to goreleaser v0.0.1 2020-06-01 09:34:18 +02:00
Grzegorz Dlugoszewski
d6f3a0a9d4 Add goreleaser config 2020-05-30 13:52:52 +02:00
Grzegorz Dlugoszewski
3d18b664e9 Remove git-list command 2020-05-30 13:52:38 +02:00
Grzegorz Dlugoszewski
f9c362a53e Add build version metadata to be overridden by ldflags 2020-05-30 13:00:31 +02:00
Grzegorz Dlugoszewski
cef21acc9e Add nil pointer check when accessing config provider 2020-05-30 12:45:55 +02:00
Grzegorz Dlugoszewski
7e42b1e3e9 Use the configured default host when host is empty after parsing the URL 2020-05-30 12:45:07 +02:00
Grzegorz Dlugoszewski
1798816b6a Enable accessing config from gitconfig file or env variables 2020-05-29 21:19:55 +02:00
Grzegorz Dlugoszewski
b72f984512 Don't show usage on clone error 2020-05-29 10:50:52 +02:00
Grzegorz Dlugoszewski
3335c81aa4 Refactor tests by removing redundant TestRepo struct 2020-05-29 10:11:08 +02:00
Grzegorz Dlugoszewski
0e551ea342 Remove old dependencies from go.mod 2020-05-28 16:41:23 +02:00
Grzegorz Dlugoszewski
1bc3928cf5 Finish refactoring by replacing old pkg with new one 2020-05-28 16:34:44 +02:00
Grzegorz Dlugoszewski
ca9be3d98f Add ahead/behind detection, clean up tests 2020-05-28 16:21:07 +02:00
Grzegorz Dlugoszewski
0b371341e7 Add branch status and tests 2020-05-27 20:30:04 +02:00
Grzegorz Dlugoszewski
fd49a9e41d Remove in-memory tests and just use temp dirs 2020-05-27 14:49:28 +02:00
Grzegorz Dlugoszewski
c628817c22 Add quiet flag to Clone method 2020-05-27 13:02:06 +02:00
Grzegorz Dlugoszewski
b94e655d4a Refactor Clone method to use go-git 2020-05-27 12:54:49 +02:00
Grzegorz Dlugoszewski
616b476ce1 [WIP] Replace git2go with go-git 2020-05-26 21:35:57 +02:00
Grzegorz Dlugoszewski
632fb4a9c8 Remove git2go and replace it with go-git 2020-05-26 11:34:32 +02:00
Grzegorz Dlugoszewski
7ab4489dfe Add ssh credentials callback when cloning via ssh protocol 2020-05-26 10:34:36 +02:00
Grzegorz Dlugoszewski
a530b1506c Refactor URL parsing so it's not being called twice 2020-05-22 15:53:44 +02:00