Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions pages/common/jj-file-chmod.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# jj file chmod

> Set or remove the executable bit for paths in a `jj` repository.
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-file-chmod>.

- Make a file executable in the working copy:

`jj file chmod {{[x|executable]}} {{path/to/file}}`

- Make a file non-executable (normal) in the working copy:

`jj file chmod {{[n|normal]}} {{path/to/file}}`

- Make multiple files executable:

`jj file chmod {{[x|executable]}} {{path/to/file1 path/to/file2 ...}}`

- Make a file executable in a specific revision:

`jj file chmod {{[-r|--revision]}} {{revision}} {{[x|executable]}} {{path/to/file}}`
21 changes: 21 additions & 0 deletions pages/common/jj-file-track.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# jj file track

> Start tracking specified paths in the working copy of a `jj` repository.
> See also: `jj file untrack`.
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-file-track>.

- Track all untracked files in the working copy:

`jj file track`

- Track a specific file or directory:

`jj file track {{path/to/file_or_directory}}`

- Track multiple paths:

`jj file track {{path/to/file1 path/to/directory2 ...}}`

- Track paths even if they are ignored or exceed the maximum file size:

`jj file track --include-ignored {{path/to/file_or_directory}}`
14 changes: 14 additions & 0 deletions pages/common/jj-file-untrack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# jj file untrack

> Stop tracking specified paths in the working copy of a `jj` repository.
> The paths must already be ignored (e.g. via `.gitignore`).
> See also: `jj file track`.
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-file-untrack>.

- Stop tracking an ignored file or directory:

`jj file untrack {{path/to/file_or_directory}}`

- Stop tracking multiple ignored paths:

`jj file untrack {{path/to/file1 path/to/directory2 ...}}`
2 changes: 1 addition & 1 deletion pages/common/jj-file.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# jj file

> Manage and inspect files in a `jj` repository.
> Some subcommands such as `annotate`, `list`, `search`, `show` have their own usage documentation.
> Some subcommands such as `annotate`, `chmod`, `list`, `search`, `show`, `track`, `untrack` have their own usage documentation.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not every subcommand needs to be mentioned. Only the most important ones.

> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-file>.

- List files tracked in the working copy:
Expand Down
Loading