mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-07 21:27:06 +00:00
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.
This commit is contained in:
parent
23c3e02134
commit
579bd4b3bf
1 changed files with 4 additions and 5 deletions
|
@ -172,13 +172,12 @@ It's the root commit of every repo. The `root` symbol in the revset matches it.)
|
||||||
There are also operators for getting the parents (`:foo`), children `foo:`,
|
There are also operators for getting the parents (`:foo`), children `foo:`,
|
||||||
ancestors (`,,foo`), descendants (`foo,,`), DAG range (`foo,,bar`, like
|
ancestors (`,,foo`), descendants (`foo,,`), DAG range (`foo,,bar`, like
|
||||||
`git log --ancestry-path`), range (`foo,,,bar`, like Git's `foo..bar`). There
|
`git log --ancestry-path`), range (`foo,,,bar`, like Git's `foo..bar`). There
|
||||||
are also a few more functions, such as `public_heads()`, which is the set of
|
are also a few more functions, such as `heads(<set>)`, which filters out
|
||||||
revisions that have Git remote-tracking branches pointing to them, except those
|
revisions in the input set if they're ancestors of other revisions in the set.
|
||||||
that are ancestors of other revisions in the set. Let's define an alias based on
|
Let's define an alias based on that by adding the following to `~/.jjconfig`:
|
||||||
that by adding the following to `~/.jjconfig`:
|
|
||||||
```
|
```
|
||||||
[alias]
|
[alias]
|
||||||
l = ["log", "-r", "(public_heads(),,,@),,"]
|
l = ["log", "-r", "(heads(remote_branches()),,,@),,"]
|
||||||
```
|
```
|
||||||
|
|
||||||
The alias lets us run `jj l` to see the commits we have created between public
|
The alias lets us run `jj l` to see the commits we have created between public
|
||||||
|
|
Loading…
Reference in a new issue