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
Confusing documentation for jj git init
#3667
Comments
It's a fair question, but the problem is the word "valid", which should probably be something else related to location of the folder. |
@joyously thanks for clarifying
The first sentence mirrors that of Then for the
|
That sounds better, but does it cover all the cases?
For an existing repo, you should always be able to use Git commands, but are there two |
From what I've learnt so far, it seems that having two
It we then run |
I think your example was scenario 2 the entire time because the default is the current directory. Did you try scenario 1? Or 3 with |
I think part of the problem is that the generated HTML misses an important part of the description. Here's the help from the CLI:
The "By default the |
@ilyagr, it looks like the markdown version keeps only the first paragraph in general. Any idea how to fix? |
There's no easy way that I know of. We'd have to write our own markdown generator or import and extend the one we currently use (https://github.com/ConnorGray/clap-markdown). I don't think that generator is being actively worked on at the moment. OTOH, writing out own generator is not prohibitive. For example, we could start by iterating over each command (just like Or, if somebody found it fun to use something like https://github.com/sunng87/handlebars-rust and make a nice template to render clap's data structures into markdown, that'd be even better. |
You could ask a lawyer how to fork clap-markdown and make the fork a Google project. Then, it could conceivably be eventually added to a jj GitHub org once that exists. Conveniently, it's licensed as "your choice of MIT or Apache". I can also fork it myself, but I'm not sure how much maintenance burden it would be. I'd also want to use other people's open PRs in clap-markdown repo. I'd still eventually want it to become a Google project somehow, so that a community is responsible for it rather than just me. I'm guessing that, technically, making it print all the paragraphs for argument help would be easy. Of course, it's possible it's harder than I think. One thing I do have is a name for a fork. If I have my way, it shall be My other thought was |
Also, I should've linked to the relevant bug: ConnorGray/clap-markdown#20. |
Perhaps this will help with issues like martinvonz#3667
Perhaps this will help with issues like #3667
https://martinvonz.github.io/jj/v0.16.0/cli-reference/#jj-git-init
Description of the command:
Which seems to indicate that the created repo will be both a
git
repo and ajj
repo, i.e. bothgit
andjj
commands will work on it.But the doc goes on to state:
Which begs the question: if I don't specify the
--colocate
option, or that it's set tofalse
, then the command won't create a validgit
repo? What does it even mean to have the command "create a new Git backed repo" but that it's not a validgit
repo?The text was updated successfully, but these errors were encountered: