Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --branch option to ghq get for specifying branch #203

Merged
merged 3 commits into from
Dec 1, 2019

Conversation

rhysd
Copy link
Contributor

@rhysd rhysd commented Dec 1, 2019

Hi,

this patch adds --branch option to ghq get. Sample usage as follows:

ghq get --branch release/9.x https://github.com/llvm/llvm-project.git

This option clones a remote repository specifying a branch rather than the default branch. With Git, it also implies --single-branch to reduce time and amount of transferred objects.

This option is useful when you're working on large repository with many branches. For example, you may fork a large repository (e.g. DefinitelyTyped) and want only your PR branch in local.

rhysd added 2 commits December 1, 2019 12:54
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.
@Songmu Songmu merged commit ac135c2 into x-motemen:master Dec 1, 2019
@Songmu
Copy link
Member

Songmu commented Dec 1, 2019

Thanks!

Songmu added a commit that referenced this pull request Dec 1, 2019
## [v0.13.0](v0.12.9...v0.13.0) (2019-12-01)

* update deps [#204](#204) ([Songmu](https://github.com/Songmu))
* Add --branch option to `ghq get` for specifying branch [#203](#203) ([rhysd](https://github.com/rhysd))
@Songmu
Copy link
Member

Songmu commented Dec 1, 2019

released as v0.13.0

@rhysd
Copy link
Contributor Author

rhysd commented Dec 1, 2019

Thank you so much for quick review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants