Martin von Zweigbergk
7e79f25508
revset: add a roots()
function
2022-04-13 23:24:51 -07:00
Martin von Zweigbergk
9ff21d8924
revset: add a connected()
function
...
This introduces a `connected(x)` function, which is simply the same as
`x:x`. It's occasionally useful if `x` is a long expression. It's also
useful as a building block for `root(x)` (coming soon).
2022-04-13 23:24:51 -07:00
Martin von Zweigbergk
095fb9fef4
config: drop support for ~/.jjconfig
...
I'm a little hesitant to do this because most tools I'm familiar with
have the config file directly in `~/`. It's also easier to describe
where to put the file if it doesn't vary across platforms. But we're
still early in the project, so let's try it and see if we get any
complaints.
2022-03-23 09:57:42 -07:00
Martin von Zweigbergk
326654952e
cli: respect Git's core.excludesFile config ( #87 )
...
It probably doesn't make sense to respect Git's `core.excludesFile`
config when not running in a Git-backed repo, but we also already
respect `.gitignore` files in the working copy regardless of backend,
so at least it's consistent with that. We can revisit it when the
native backend becomes a reasonable choice.
Closes #87 .
2022-03-12 10:48:06 -08:00
Martin von Zweigbergk
6902c703b3
docs: start describing differences compared to Git
...
I've surely missed a lot here, but one has to start somewhere.
2022-03-11 22:47:36 -08:00
Martin von Zweigbergk
05734138e8
docs: add cherry-picking to Git-comparison table
2022-03-11 22:47:36 -08:00
Martin von Zweigbergk
f86c3b488b
docs: add jj move
to Git-comparison table
2022-03-11 22:47:36 -08:00
Martin von Zweigbergk
9a189fea91
docs: list supported and unsupported Git features
2022-03-11 22:47:36 -08:00
Martin von Zweigbergk
b64ee147ae
docs: add technical doc about a conflict design
...
We used to have documention about how conflicts are implemented, but I
removed that a long time ago when I rewrote the README to target users
rather than VCS hackers. Let's have a doc for the VCS hackers (and
curious users) as well, though.
2022-03-09 21:08:41 -08:00
Martin von Zweigbergk
382be623b8
docs: correct a mention about getting long vs. short help
...
I haven't checked, but I think `jj help git push` used to give the
short form with `clap` 2. With `clap` 3, it's definitely the long form
anyway.
2022-03-09 07:48:31 -08:00
Matthew L Daniel
88cc9ffcbc
Fix a link from 423a894
2022-02-26 00:15:53 -08:00
Martin von Zweigbergk
d9b364442e
cleanup: update references to .jj/store/git
to .jj/repo/store/git
...
The `store/` directory (and many others) recently moved into
`.jj/repo/`, but I forgot to update a few places.
2022-02-17 22:44:14 -08:00
Martin von Zweigbergk
51c351f272
cli: rename --git-store to --git-repo
...
"store" is just used internally, it's not something we should expose
to users.
2022-02-02 08:13:10 -08:00
Martin von Zweigbergk
4e20548e32
docs: some futher touch-ups of concurrency.md
2022-01-12 23:20:22 -08:00
Martin von Zweigbergk
4c45844aba
docs: fix a typo in concurrency doc
2022-01-10 07:58:27 -08:00
Martin von Zweigbergk
94fda7935a
docs: add technical doc about lock-free concurrency design
2022-01-09 22:03:19 -08:00
Martin von Zweigbergk
9ec0e4c1bb
docs: use Git-style unified diff in the tutorial
...
The default (color-based) diffs are not readable in Markdown. Also,
it's useful for the user to learn about the `--git` flag.
2022-01-05 12:38:52 -08:00
Martin von Zweigbergk
037d66965d
docs: start documenting Git compatibility
2022-01-03 22:40:58 -08:00
Martin von Zweigbergk
f9e6b263a1
docs: explain how not exposing "the index" in the UI is a good thing
2021-12-18 09:22:35 -08:00
Martin von Zweigbergk
71b0233efb
docs: add doc about a first-class conflicts
2021-12-18 08:07:28 -08:00
Martin von Zweigbergk
423a894cba
docs: consistently use hyphens in filenames
2021-12-18 07:56:48 -08:00
Martin von Zweigbergk
7b09a232bc
docs: update doc about working copy now that conflicts are preserved
...
Conflicts are preserved in the working copy since ea82340654
, I just
forgot to update the documentation.
2021-12-17 16:29:20 -08:00
Martin von Zweigbergk
66cedc804e
docs: explain how to untrack a file while keeping it in the working copy
...
Issue #14 was fixed a while ago, but I forgot to update the
documentation.
2021-12-17 15:58:20 -08:00
Martin von Zweigbergk
006cb37183
docs: replace jj concepts
by markdown docs
...
I wanted to have all the documentation available on the command line,
but that makes it harder to maintain and link to. Let's move it to
markdown instead. We may later be able to add some way of presenting
the markdown in the terminal (or maybe by first converting it to
reStructuredText).
2021-12-17 15:18:41 -08:00
Martin von Zweigbergk
9e591def26
cli: add jj show
command for showing commit description and diff
...
This functionality is probably what I miss most from git/hg.
2021-12-17 13:28:09 -08:00
Martin von Zweigbergk
277f42d98a
revsets: add author()
and committer()
functions ( #46 )
...
Filtering by the author or committer is quite common.
2021-12-15 22:50:29 -08:00
Martin von Zweigbergk
7d3d0fe83c
revsets: allow the ..
operator to be used as prefix or suffix ( #46 )
...
It makes sense to omit either of the arguments of the `..` operator,
even though `..x` is equivalent to `:x`. `x..`, with a implied right
argument of `heads()` is more useful.
2021-12-15 22:16:22 -08:00
Martin von Zweigbergk
588389e89f
docs: add pointer to new revset doc in tutorial ( #46 )
2021-12-15 21:41:11 -08:00
Martin von Zweigbergk
4c71c763e9
docs: document revsets ( #46 )
...
Now that revset operators are not as embarrassing as before, let's
document them.
2021-12-15 16:56:45 -08:00
Martin von Zweigbergk
c185b395f6
revsets: swap meaning of operators ~
and -
( #46 )
...
As suggested by @arxanas, this makes `-` symmetric with `+` and `-` is
easier to type than `~`.
2021-12-12 23:02:29 -08:00
Martin von Zweigbergk
35a712cc48
revsets: change Git-like range operator ,,,
operator to ..
( #46 )
2021-12-12 00:20:00 -08:00
Martin von Zweigbergk
98659a16e1
revsets: change DAG range operator ,,
operator to :
( #46 )
2021-12-12 00:20:00 -08:00
Martin von Zweigbergk
63c90c04c8
revsets: change parent/children operators to foo~
/foo+
( #46 )
2021-12-11 23:47:34 -08:00
Martin von Zweigbergk
698b92adc4
docs: update tutorial to mention jj untrack
...
I forgot to update the tutorial when I closed #14 .
2021-12-01 09:56:58 -08:00
Martin von Zweigbergk
813ae0276d
docs: use simpler jj undo
alias instead of jj op undo
2021-11-20 10:33:55 -08:00
Martin von Zweigbergk
d34060f013
cli: print "Added X files, ..." message only if any files changed
...
Looking at the impact on the smoke test and the tutorial, I think I
went overboard in 83c0519
. Let's only print the message if any files
changed.
2021-11-19 23:14:19 -08:00
Martin von Zweigbergk
ae3ff4e1be
cli: add command aliases such as "commit" for "close"
...
Although "commit" isn't technically correct for what `close` does,
it's how new users think of it, so let's make it a bit easier for
them.
2021-11-10 11:11:09 -08:00
Martin von Zweigbergk
2796b5a8e1
docs: update tutorial with new conflict handling in the working copy
2021-11-07 15:17:51 -08:00
Martin von Zweigbergk
0dac2e5ed5
docs: mention Breezy as a similar tool
...
Closes #40 .
2021-11-04 08:32:42 -07:00
Martin von Zweigbergk
5c0e929b29
docs: add a "Related Work" section to README
2021-10-28 15:01:19 -07:00
Martin von Zweigbergk
6687f98d8a
cli and docs: replace "id" by more correct "ID"
2021-10-27 15:06:10 -07:00
Martin von Zweigbergk
191c1ee166
cli: make "added {} files, modified {} files, ..." message start with uppercase
...
We pretty consistently start with uppercase so this message stood out
and bothered me.
2021-10-24 12:46:01 -07:00
Martin von Zweigbergk
f35f2f0c97
docs: update tutorial with removed "at" from diff headers
...
I forgot to include this in the previous commit.
2021-10-22 13:05:04 -07:00
Martin von Zweigbergk
579bd4b3bf
docs: update alias in tutorial to not use public_heads()
revset
...
We don't update public heads very well yet and I'd like to take a
shortcut and simply not have care about public heads for now.
2021-10-20 14:19:04 -07:00
Martin von Zweigbergk
c3ac110f3b
tutorial: avoid a "the same repo" referring back to installation instructions
2021-10-18 08:49:00 -07:00
Martin von Zweigbergk
56e0f1254b
docs: move initial configuration from tutorial to README
...
It seems better to have all the one-time setup in the README.
2021-10-13 20:37:48 -07:00
Martin von Zweigbergk
08b5193942
docs: update tutorial with new diff headers
...
I forgot to update the tutorial in the previous commit.
2021-10-13 16:13:25 -07:00
Martin von Zweigbergk
8fef1c2068
docs: move installation instructions from tutorial to README
...
I also changed the instructions to use `cargo install --git` pointing
straight to GitHub, so we don't have the naming conflict with the jj
repo created in the tutorial.
2021-10-13 08:52:40 -07:00
Martin von Zweigbergk
ae7f00e7b1
cli: rename jj prune
to jj abandon
...
The command's help text says "Abandon a revision", which I think is a
good indication that the command's name should be `abandon`. This
patch renames the command and other user-facing occurrences of the
word. The remaining occurrences should be removed when I remove
support for evolution.
2021-09-19 22:51:12 -07:00
Martin von Zweigbergk
1f2ce49e89
docs: remove unnecessary git
steps in git-comparison doc
...
The table describes the simplified Git workflow of always using `git
commit -a`. With that workflow, you don't need to `git add` or `git
rm` to stage changes.
2021-09-12 12:01:28 -07:00