Skip to content

Commit a2f522d

Browse files
committed
docs(claude): use editor instead of -m flag in jj skill
Makes commit messages easier to copy-paste into the editor rather than dealing with shell escaping.
1 parent e9ec028 commit a2f522d

1 file changed

Lines changed: 11 additions & 9 deletions

File tree

.claude/commands/jj.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,22 +49,24 @@ For each logical commit, provide:
4949
- path/to/file1
5050
- path/to/file2
5151
52-
**Message:**
53-
```
54-
<type>(<scope>): <description>
55-
56-
<body explaining the what and why>
57-
```
58-
5952
**Commands:**
6053
```bash
6154
jj split -r @ ...
6255
# ^ What this does: <explain what the command does and why we're using it here>
6356
64-
jj describe -m "..."
65-
# ^ What this does: <explain what the command does>
57+
jj describe
58+
# ^ Opens $EDITOR to write commit message. Use the message below:
6659
```
60+
61+
**Commit message:**
6762
```
63+
<type>(<scope>): <description>
64+
65+
<body explaining the what and why>
66+
```
67+
```
68+
69+
**IMPORTANT**: Never use `jj describe -m "..."`. Always use `jj describe` (no -m flag) to open the editor, then provide the commit message in a separate code block for easy copy-paste.
6870
6971
## jj concepts to explain
7072

0 commit comments

Comments
 (0)