ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Martin von Zweigbergk cd4fbd3565 working_copy: add a reset() function for Git-like reset
We already have two usecases that can be modeled as updating the
`TreeState` without touching the working copy:

 1. `jj untrack` can be implemented as removing paths from the tree
    object and then doing a reset of the working copy state.

 2. Importing Git HEAD when sharing the working copy with a Git repo.

This patch adds that functionality to `TreeState`.
2022-01-19 08:32:59 -08:00
..
benches project: rename project from Jujube to Jujutsu 2021-05-15 10:28:40 -07:00
protos git: start tracking HEAD of underlying Git repo 2021-12-01 11:08:53 -08:00
src working_copy: add a reset() function for Git-like reset 2022-01-19 08:32:59 -08:00
tests working_copy: add a reset() function for Git-like reset 2022-01-19 08:32:59 -08:00
build.rs
Cargo.toml cargo: upgrade to Rust 2021 (just to stay up to date) 2021-12-13 21:47:00 -08:00