-
Notifications
You must be signed in to change notification settings - Fork 343
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
cli: Add a jj git init
command.
#2932
Conversation
4daeed2
to
c86b522
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- I believe that --colocated doesn't need to go through the same
steps as --git-repo, after the repo is created. Is this correct?
Yes, but you'll need to set up .jj/.gitignore
.
- I've kept the current behaviour of
jj init --git
by specifying
colocated
false when invoked that way. I don't think it's worth
the effort to add it in. Makes sense?
I don't think we'll need to add new feature to jj init --git
.
25feffd
to
800ac05
Compare
|
a7fce2a
to
85322a8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. But I'll defer to martin or yuya for a final approval.
85322a8
to
d5ad207
Compare
Thanks. I'll wait for a stamp from one of them. |
d5ad207
to
dc8ac02
Compare
This initializes a git backed repo. * It does the same thing as `jj init --git` except that it has a --colocated flag to explicitly specify that we want the .git repo to be side-by-side the .jj repo in the working directory. * `jj init --git` will keep the current behaviour and will not be able to create colocated git backed repos. * Update test snapshots.
Implement
jj git init
There are two flags which work as mostly expected.
See
GitInitArgs
for details.Some improvements around
colocated
repos vs--git-repo=.
will come after this PR is merged.The actual delta in this PR is tiny. The only thing new here is hooking up the
jj git init
command itself and insidegit_init
handling--colocated
differently.The rest of the PR is test and documentation.
Checklist
If applicable:
CHANGELOG.md