diff --git a/docs/git-comparison.md b/docs/git-comparison.md index 1f8e9ce037..4a4439dce6 100644 --- a/docs/git-comparison.md +++ b/docs/git-comparison.md @@ -181,14 +181,19 @@ parent. git commit -a - See log of commits - jj log + See log of ancestors of the current commit + jj log -r ::@ git log --oneline --graph --decorate - Show log of ancestors of the current commit only, including all ancestors, not just stopping at immutable commits - jj log -r ::@ - git log + See log of all reachable commits + jj log -r 'all()' or jj log -r :: + git log --oneline --graph --decorate --branches + + + Show log of commits not on the main branch + jj log + (TODO) Search among files versioned in the repository diff --git a/docs/revsets.md b/docs/revsets.md index d3f829128e..db8e0dd546 100644 --- a/docs/revsets.md +++ b/docs/revsets.md @@ -227,22 +227,22 @@ Show the parent(s) of the working-copy commit (like `git log -1 HEAD`): jj log -r @- ``` -Show commits not on any remote branch: +Show all ancestors of the working copy (like plain `git log`) ``` -jj log -r 'remote_branches()..' +jj log -r ::@ ``` -Show commits not on `origin` (if you have other remotes like `fork`): +Show commits not on any remote branch: ``` -jj log -r 'remote_branches(remote=origin)..' +jj log -r 'remote_branches()..' ``` -Show all ancestors of the working copy (almost like plain `git log`) +Show commits not on `origin` (if you have other remotes like `fork`): ``` -jj log -r ::@ +jj log -r 'remote_branches(remote=origin)..' ``` Show the initial commits in the repo (the ones Git calls "root commits"):