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 repositories to workspace from source #804

Merged
merged 10 commits into from Dec 10, 2019

Conversation

roxchgt
Copy link
Contributor

@roxchgt roxchgt commented Dec 4, 2019

It's the implementation of recently dicussed feature here: Issue #803

extends the addworkspace function as follows:
git bulk --addworkspace <ws-name> <ws-root-directory> (--from <URL or file>)

With option --from the URL to a single repository or a file containing multiple URLs can be added and they will be cloned diretly into the workspace. Suitable for the initial setup of a multi-repo project.

$ git bulk --addworkspace projectX ~/workspaces/projectx --from https://github.com/x/project-x.git

# OR with a file containing many repositories on each line:
$ git bulk --addworkspace projectX ~/workspaces/projectx --from ~/workspaces/repositories.txt

with repositories.txt be like:

https://github.com/x/project-x-1.git
https://github.com/x/project-x-2.git
https://github.com/x/project-x-3.git

@spacewander spacewander self-assigned this Dec 5, 2019
@roxchgt
Copy link
Contributor Author

roxchgt commented Dec 5, 2019

Line 182 introducing 2 allowedargcount and checking if both of them are not equal to $paramcount is necessary to keep API working as before.

bin/git-bulk Outdated Show resolved Hide resolved
bin/git-bulk Outdated Show resolved Hide resolved
bin/git-bulk Outdated Show resolved Hide resolved
bin/git-bulk Outdated Show resolved Hide resolved
bin/git-bulk Outdated Show resolved Hide resolved
bin/git-bulk Outdated Show resolved Hide resolved
@spacewander
Copy link
Collaborator

@roxchgt
Please resolve the merge conflicts and also update the man/git-bulk.md(remember to generate the docs according to the man/Readme.md)

@roxchgt
Copy link
Contributor Author

roxchgt commented Dec 6, 2019

@spacewander

Please resolve the merge conflicts and also update the man/git-bulk.md(remember to generate the docs according to the man/Readme.md)

Done!

@spacewander spacewander removed the todo label Dec 7, 2019
bin/git-bulk Outdated Show resolved Hide resolved
bin/git-bulk Show resolved Hide resolved
bin/git-bulk Outdated Show resolved Hide resolved
bin/git-bulk Outdated Show resolved Hide resolved
@spacewander spacewander merged commit 16bb0df into tj:master Dec 10, 2019
@spacewander
Copy link
Collaborator

@roxchgt
Merged. Thank you!

@roxchgt roxchgt deleted the addworkspace-from-source branch October 6, 2023 07:28
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.

None yet

2 participants