ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/docs
Martin von Zweigbergk a0573b1737 cli: add a command for updating a stale working copy
When a workspace's working-copy commit is updated from another
workspace, the workspace becomes "stale". That means that the working
copy on disk doesn't represent the commit that the repo's view says it
should. In this state, we currently automatically it to the desired
commit next time the user runs any command in the workspace. That can
be undesirable e.g. if the user had a slow build or test run started
in the working copy. It can also be surprising that a checkout happens
when the user ran a seemingly readonly command like `jj status`.

This patch makes most commands instead error out if the working copy
is stale, and adds a `jj workspace update-stale` to update it. The
user can still run commands with `--no-commit-working-copy` in this
state (doing e.g. `jj --no-commit-working-copy rebase -r @ -d @--` is
another way of getting into the stale-working-copy state, by the way).
2022-12-05 08:50:52 -08:00
..
technical
branches.md templater: indicate if branch needs to be pushed to a remote 2022-11-09 22:44:55 -08:00
code-of-conduct.md
config.md pager: default to less -FRX 2022-12-04 00:00:31 -08:00
config.toml Documentation for jj resolve and merge tool config 2022-12-03 15:12:40 -08:00
conflicts.md
contributing.md docs: describe how we do code reviews 2022-12-02 13:05:32 -08:00
git-comparison.md docs: describe git commit --fixup equivalent 2022-11-19 14:22:34 -08:00
git-compatibility.md feature: support git credential helpers 2022-11-19 22:06:27 -08:00
operation-log.md
related-work.md
revsets.md revset: add unary negate (or set complement) operator '~y' 2022-11-29 15:46:15 +09:00
tutorial.md log: move commit ID off to the right 2022-11-14 07:49:52 -08:00
working-copy.md cli: add a command for updating a stale working copy 2022-12-05 08:50:52 -08:00