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 repo import tool #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add repo import tool #6

wants to merge 2 commits into from

Conversation

greened
Copy link
Contributor

@greened greened commented Jan 9, 2019

Add a tool to take an existing git repository and rewrite its commits
such that trees appear under a subdirectory in the monorepo. This is
useful for downstream users to incorporate their own private
repositories into the monorepo for various purposes.

@danilaml
Copy link

danilaml commented Jan 10, 2019

Is it different in purpose from https://github.com/jyknight/llvm-git-migration/blob/master/migrate-downstream-fork.py ?

EDIT: is it for other llvm-based repos that are not direct forks of existing llvm tools?

@jyknight
Copy link
Owner

I'm not sure I understand this tool. In its default mode, is it different than just doing a subtree merge of the other tool onto the tip of the monorepo?

@greened
Copy link
Contributor Author

greened commented Jan 10, 2019

Yes, I suppose it really just is a subtree merge. Duh. It does rename tags but that's probably not enough to justify an entire tool.

@greened
Copy link
Contributor Author

greened commented Jan 10, 2019

Ah, one aspect I had forgot about. This tool will import all branches of the repository. To do that with subtree merges would require a separate subtree merge of each branch. Maybe not incredibly painful, but a single one-shot tool to import everything might be useful.

@greened
Copy link
Contributor Author

greened commented Jan 16, 2019

EDIT: is it for other llvm-based repos that are not direct forks of existing llvm tools?

Essentially, yes. It's for third-party projects that exist outside the official LLVM ecosystem. Really, anything at all one might want to import into a local fork of the monorepo for whatever reason.

Add a tool to take an existing git repository and rewrite its commits
such that trees appear under a subdirectory in the monorepo.  This is
useful for downstream users to incorporate their own private
repositories into the monorepo for various purposes.
Let the user decide how to rename tags.
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.

3 participants