Skip to content

Commit

Permalink
add FAQ for divergent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tp-woven committed Oct 31, 2023
1 parent 38daa9a commit 530b3a2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,17 @@ commit, then run `jj restore --from Y --to @-` to restore the parent commit
to the old state, and `jj restore --from X` to restore the new working-copy
commit to the new state.

### What do I do with divergent changes?

A divergent change (denoted by `??` after the change ID in the log) represents
a change that has two or more visible commits associated with it. Most commonly,
the way to resolve this is to abandon the unneeded commits.

Usually, the different commits associated with the divergent change ID should all
appear in the log, but due to #2476, they may not. If that happens, you can
either use `jj log -r 'all()' | grep <change id>` or disable the
`revsets.short-prefixes` config option.

[config]: config.md

[gitignore]: https://git-scm.com/docs/gitignore
Expand Down

0 comments on commit 530b3a2

Please sign in to comment.