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

FR: Add a jj git colocate command #4624

Open
PhilipMetzger opened this issue Oct 11, 2024 · 3 comments · May be fixed by #4833
Open

FR: Add a jj git colocate command #4624

PhilipMetzger opened this issue Oct 11, 2024 · 3 comments · May be fixed by #4833
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@PhilipMetzger
Copy link
Collaborator

PhilipMetzger commented Oct 11, 2024

Is your feature request related to a problem? Please describe.

We've repeatedly had the request in the Discord for a command which eases the transition from a bare Git backed repo (initialized with jj git init), to a colocated (so moving the .git directory adjacent to .jj) one. This command should be responsible for doing that.

Implementation Steps

Add a new file under named colocate.rs under cli/src/commands/git/ (don't forget to add mod colocate to the mod.rs).
Implement these steps with code: https://martinvonz.github.io/jj/latest/git-compatibility/#converting-a-repo-into-a-co-located-repo

@PhilipMetzger PhilipMetzger added enhancement New feature or request good first issue Good for newcomers labels Oct 11, 2024
@estk
Copy link

estk commented Oct 11, 2024

@PhilipMetzger how does this differ from jj git init --colocate?

@essiene
Copy link
Collaborator

essiene commented Oct 11, 2024

@PhilipMetzger how does this differ from jj git init --colocate?

IIUC, this takes a jj git backed repo presumably created by jj git init and turns it into a colocated repo.

It wasn't very clear from the initial description until I followed the link.

@PhilipMetzger
Copy link
Collaborator Author

PhilipMetzger commented Oct 11, 2024

@PhilipMetzger how does this differ from jj git init --colocate?

IIUC, this takes a jj git backed repo presumably created by jj git init and turns it into a colocated repo.

This is correct, I'll edit the description.

@cormacrelf cormacrelf linked a pull request Nov 11, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants