You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,11 @@ scg generate [OPTIONS]
123
123
|`--quiet`|`-q`| Suppress routine info lines | Off | Hides `[INFO]` but keeps `[NOTICE]`, warnings, errors. Ignored if `--verbose` is present. |
124
124
|`--no-quiet`|| Ensure quiet mode is disabled, even if configured | - | Helpful when scripts need full output. |
125
125
|`--single-file`|| Analyze each file independently and then combine per-file drafts | Off | Sends a larger diff slice per file, useful when you need high-fidelity summaries. |
126
+
|`--function-context`|| Include entire functions containing changes in the diff | On | Provides better semantic context for the AI model. |
127
+
|`--no-function-context`|| Disable function context in diffs | - | May reduce diff size for very large changesets. |
128
+
|`--detect-renames`|| Detect renamed and copied files in diffs | On | Shows moves as renames rather than delete + add. |
129
+
|`--no-detect-renames`|| Disable rename/copy detection | - | Use raw add/delete representation. |
130
+
|`--context-lines <n>`|| Number of context lines around changes |`3`| Higher values give more surrounding code context. |
126
131
127
132
### Verbosity Levels
128
133
@@ -174,6 +179,12 @@ Request high-fidelity per-file drafts before they are combined:
174
179
scg --single-file
175
180
```
176
181
182
+
Generate with more context lines and disabled function context (for very large diffs):
183
+
184
+
```sh
185
+
scg --context-lines 5 --no-function-context
186
+
```
187
+
177
188
Configuration Defaults
178
189
----------------------
179
190
Use the `config` subcommand to inspect or update stored defaults. Running it with no flags opens an interactive, colorized editor that walks through each preference:
@@ -193,6 +204,14 @@ Available options:
193
204
|`--clear-verbose`| Remove the stored verbose preference. |
194
205
|`--quiet <true\|false>`| Set the default quiet logging preference. |
195
206
|`--clear-quiet`| Remove the stored quiet preference. |
207
+
|`--mode <automatic\|per-file>`| Set the default generation mode. |
208
+
|`--clear-mode`| Remove the stored generation mode preference. |
209
+
|`--function-context <true\|false>`| Set whether to include entire functions in diffs. |
210
+
|`--clear-function-context`| Remove the stored function-context preference. |
211
+
|`--detect-renames <true\|false>`| Set whether to detect renamed/copied files in diffs. |
212
+
|`--clear-detect-renames`| Remove the stored detect-renames preference. |
213
+
|`--context-lines <n>`| Set the default number of context lines around changes. |
214
+
|`--clear-context-lines`| Remove the stored context-lines preference. |
196
215
197
216
When no options are provided, the command detects whether the terminal is interactive and presents guided prompts with recommended defaults highlighted. Stored settings live in `~/Library/Application Support/scg/config.json`.
0 commit comments