jj-fix(1) General Commands Manual jj-fix(1) (NAME) jj-fix - (SYNOPSIS) jj fix [-R|--repository] [-s|--source] [--ignore-working-copy] [--include-unchanged-files] [-a|--all-lines] [--no-integrate-operation] [--ignore-immutable] [--at-operation] [--debug] [--color] [--quiet] [--no-pager] [--config] [--config-file] [-h|--help] [FILESETS] (DESCRIPTION) . sed sort . jj fix jj op show -p . (How it works) . . (conflicts) . . (Deduplication) . jj fix (deterministic) . (Configuration) Code formatting and other file content transformations jj help -k config . (Execution example) . (clang-format black) (.cc, .h .py) : [fix.tools.clang-format] command = ["/usr/bin/clang-format", "--assume-filename=$path"] patterns = ["glob:'**/*.cc'", "glob:'**/*.h'"] [fix.tools.black] command = ["/usr/bin/black", "-", "--stdin-filename=$path"] patterns = ["glob:'**/*.py'"] jj fix : C (mutable) | Modifies file: foo.py | B @ (working copy - mutable) | Modifies file: README.md | A (mutable) | Modifies files: src/bar.cc and src/bar.h | X (immutable) jj fix (revset) reachable(@, mutable()) ( : jj help -k revsets) A B C . : o A src/bar.cc src/bar.h clang-format A A' . . o B src/bar.cc src/bar.h . B clang-format . README.md . B' . o C src/bar.cc src/bar.h clang-format foo.py black . . C' . C (mutable) /-> C' | src/bar.cc -> clang-format -| | | src/bar.h --> clang-format -| | | foo.py -----> black --------| | | * --------------------------/ | | | B @ (working copy - mutable) /-> B' @ | src/bar.cc -> clang-format -| | | src/bar.h --> clang-format -| | | * --------------------------| | | | A (mutable) /-> A' | src/bar.cc -> clang-format -| | | src/bar.h --> clang-format -| | | * --------------------------/ | | | X (immutable) X . (OPTIONS) -s, --source () . revsets.fix reachable(@, mutable()) --include-unchanged-files . -a, --all-lines . . -h, --help ( '-h') [FILESETS] (GLOBAL OPTIONS) -R, --repository Jujutsu .jj/ . --ignore-working-copy Jujutsu . (`@`) . --ignore-working-copy . (prompt) . --at-operation --ignore-working-copy . --no-integrate-operation (operation log) . . . jj --at-op jj op restore . jj op integrate . **. jj git push --no-integrate-operation (push) . --ignore-immutable Jujutsu . (root commit) . (revset) immutable_heads() immutable . --at-operation . Jujutsu . --at-op= . jj --at-op= st jj st . --at-op=@ . jj op log . . --ignore-working-copy . (mutating) . . . --debug (debug logging) --color : o always o never o debug o auto --quiet jj file list (rebase) . . --no-pager (pager) --config ( ) TOML . TOML . TOML ( ) . --config-file ( ) (SEE ALSO) jj(1) fix jj-fix(1)