Skip to content

Commit bfcb442

Browse files
committed
jj-file-{chmod,track,untrack}: add pages
1 parent b06880d commit bfcb442

4 files changed

Lines changed: 56 additions & 1 deletion

File tree

pages/common/jj-file-chmod.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# jj file chmod
2+
3+
> Set or remove the executable bit for paths in a `jj` repository.
4+
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-file-chmod>.
5+
6+
- Make a file executable in the working copy:
7+
8+
`jj file chmod {{[x|executable]}} {{path/to/file}}`
9+
10+
- Make a file non-executable (normal) in the working copy:
11+
12+
`jj file chmod {{[n|normal]}} {{path/to/file}}`
13+
14+
- Make multiple files executable:
15+
16+
`jj file chmod {{[x|executable]}} {{path/to/file1 path/to/file2 ...}}`
17+
18+
- Make a file executable in a specific revision:
19+
20+
`jj file chmod {{[-r|--revision]}} {{revision}} {{[x|executable]}} {{path/to/file}}`

pages/common/jj-file-track.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# jj file track
2+
3+
> Start tracking specified paths in the working copy of a `jj` repository.
4+
> See also: `jj file untrack`.
5+
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-file-track>.
6+
7+
- Track all untracked files in the working copy:
8+
9+
`jj file track`
10+
11+
- Track a specific file or directory:
12+
13+
`jj file track {{path/to/file_or_directory}}`
14+
15+
- Track multiple paths:
16+
17+
`jj file track {{path/to/file1 path/to/directory2 ...}}`
18+
19+
- Track paths even if they are ignored or exceed the maximum file size:
20+
21+
`jj file track --include-ignored {{path/to/file_or_directory}}`

pages/common/jj-file-untrack.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# jj file untrack
2+
3+
> Stop tracking specified paths in the working copy of a `jj` repository.
4+
> The paths must already be ignored (e.g. via `.gitignore`).
5+
> See also: `jj file track`.
6+
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-file-untrack>.
7+
8+
- Stop tracking an ignored file or directory:
9+
10+
`jj file untrack {{path/to/file_or_directory}}`
11+
12+
- Stop tracking multiple ignored paths:
13+
14+
`jj file untrack {{path/to/file1 path/to/directory2 ...}}`

pages/common/jj-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# jj file
22

33
> Manage and inspect files in a `jj` repository.
4-
> Some subcommands such as `annotate`, `list`, `search`, `show` have their own usage documentation.
4+
> Some subcommands such as `annotate`, `chmod`, `list`, `search`, `show`, `track`, `untrack` have their own usage documentation.
55
> More information: <https://docs.jj-vcs.dev/latest/cli-reference/#jj-file>.
66
77
- List files tracked in the working copy:

0 commit comments

Comments
 (0)