Commit graph

46 commits

Author SHA1 Message Date
KeitaShimura 435ed0ec87 feat: remove --print flag and print local path by default 2026-04-09 15:24:09 +09:00
yulog cefa808653 chore: exec go fix ./... 2026-02-15 19:45:03 +09:00
Ray Shirohara a02175071d
feat: add partial option support to ghq get 2025-03-26 00:25:03 +09:00
stong d58cfaa1a3 Optimize: Reduce full repo scans when look tag is set
fix https://github.com/x-motemen/ghq/issues/379
2024-04-23 01:36:48 +08:00
Wade Zhang e883e7d4d6 Append ".git" to directory name for bare git repositories 2023-04-04 16:01:11 +08:00
Zhizhen He 050c32d894
de-capitalize errors to make staticcheck happy 2023-02-23 16:01:00 +08:00
Songmu eb410cd754 Fixed a problem with SSH URLs, etc. 2023-02-23 00:30:16 +09:00
Nathan Baulch fc92209e1b Support branch/tag via @ syntax 2022-08-18 16:02:48 +10:00
itchyny adb10f8e15 Simplify repository lock using sync.Map 2022-05-06 15:56:25 +09:00
Jakob Helmecke d114440efb feat: do a bare clone 2022-01-05 19:02:04 +01:00
Xeres e6c6bb30f4 Support codecommit HTTP (GRC) 2021-05-22 21:26:27 +09:00
Songmu 427feec147 adjustment 2020-06-30 10:55:21 +09:00
Yoichi Nakayama 0b8805b2f0 Remove trailing slash before stripping .git from the end
Fixed a problem that ghq get -u may clone to another directory
1. ghq get https://git.kernel.org/pub/scm/git/git.git/
   -> GHQ_ROOT/git.kernel.org/pub/scm/git/git.git
2. ghq list | ghq get -u
   -> GHQ_ROOT/git.kernel.org/pub/scm/git/git
2020-06-29 23:51:09 +09:00
Yoichi Nakayama f0bdf0c4bd Move the pre-processing inside detectLocalRoot() 2020-06-29 23:47:32 +09:00
Yoichi Nakayama 6320ff7c8d Revert "Fixed a problem that ghq get -u may clone to another directory"
This reverts commit 512c2ee049.
2020-06-29 23:44:42 +09:00
Yoichi Nakayama 512c2ee049 Fixed a problem that ghq get -u may clone to another directory
1. ghq get https://git.kernel.org/pub/scm/git/git.git/
   -> GHQ_ROOT/git.kernel.org/pub/scm/git/git.git
2. ghq list | ghq get -u
   -> GHQ_ROOT/git.kernel.org/pub/scm/git/git
2020-06-29 20:33:43 +09:00
Mitsuo Heijo 71e77c4add change RemoteRepository#VCS to return error 2020-06-03 23:54:37 +09:00
Songmu 6171577758 update module name to github.com/x-motemen/ghq and fix import paths 2020-01-24 21:21:56 +09:00
Songmu c4b4fb2fd1 trivial fix 2020-01-04 19:00:20 +09:00
Songmu 5f58f510b7 refactor getter.go 2019-12-24 12:19:30 +09:00
Songmu 9d53b278d9 refine create subcommand 2019-12-24 11:53:05 +09:00
Songmu 2237341b82 fix interface of newURL 2019-12-24 02:06:43 +09:00
Songmu 769b55d91e fix interface of newURL 2019-12-24 01:49:25 +09:00
Songmu 70fd3b343b adjustment 2019-12-23 01:57:25 +09:00
moajo a4e9027425 add --recursive option to ghq get 2019-12-20 18:48:33 +09:00
Songmu 82318aeedf drop xerrors deps and update deps 2019-12-19 01:56:38 +09:00
Songmu a04129b946 Revert "add --recursive option to get and import subcommands"
This reverts commit ddbfb719e7.
2019-12-17 23:04:46 +09:00
Songmu 676ed981c9 define type vcsGetOption struct 2019-12-17 23:03:53 +09:00
Songmu ddbfb719e7 add --recursive option to get and import subcommands 2019-12-17 11:25:57 +09:00
Masayuki Matsuki cab7105e35
Merge pull request #210 from tockn/fix-typo
Fix typos!
2019-12-04 20:04:58 +09:00
tockn 217064ca61 Fix typos 2019-12-04 19:59:53 +09:00
tockn 4d86f1abd4 Fix redundant index 2019-12-04 19:53:44 +09:00
rhysd 44bbec4edf add --branch option to ghq get to specify branch
this option implies --single-branch on Git. It reduces the clone time
and amount of transferred objects maintaining a history of specific
branch.

this option is useful when you fork a large repository and want to
checkout only your PR branch.
2019-12-01 12:54:10 +09:00
Yasuhiro Matsumoto b563a7fede
Fix tests for Windows 2019-10-30 23:15:26 +09:00
Yasuhiro Matsumoto 5794b231fc
Use filepath instead of path for local paths 2019-10-25 15:38:03 +09:00
gmidorii 29eb710a76 Removing port number in getter.go. 2019-05-29 18:30:51 +09:00
Songmu 764b79f52a refine local cloning path detection. fix #180 2019-05-28 15:44:39 +09:00
Songmu df56f4591b adjustment 2019-05-12 16:44:35 +09:00
Songmu 69a65817c2 refine local cloning path detection. fix #169 2019-05-12 16:28:16 +09:00
Songmu 2aeefa5ea9 add comment 2019-05-07 03:46:56 +09:00
Songmu 9d4863bb5b workaround 2019-05-07 03:29:42 +09:00
Songmu 96c7b5dfb6 get lock using repoPath to avoid duplicate get on import 2019-05-07 02:57:31 +09:00
Songmu 015f3d64f2 adjustment 2019-05-07 01:28:37 +09:00
Songmu 9302424989 build repoPath before vcs.Clone 2019-05-07 01:09:16 +09:00
Songmu 175a3669ff adjustment 2019-05-06 23:39:49 +09:00
Songmu 1e0eca2e2e separate getter.go from commands.go 2019-05-06 23:37:24 +09:00