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
{{ message }}
Repository navigation
Commit 1d00933
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.ja.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,6 +141,7 @@ git-sc -n
141
141
142
142
-`--reword` は rebase が進行中のときは実行を拒否します。reword は失敗した rebase を必ず `git rebase --abort` で終わらせるため、進行中の rebase の上に重ねると解決作業中の内容を破棄してしまうためです。先に rebase を完了するか中止してください。
143
143
- メッセージ生成中にステージ内容が変化した場合、コミットを中止します(生成前後の index の tree を比較します)。生成済みメッセージは変更前の内容を説明したものなので、変更後の内容をそのままコミットするのは誤りだからです。そのまま再実行してください。`--squash` も reset の直前に同じ確認を行います。
144
+
- 通常のコミット、`--amend`、`--squash` は、生成中に `HEAD` が動いた場合も中止します。`--squash` がまとめる対象と `--amend` が書き換える対象は index ではなく履歴側にあるため、別の端末でコミットされても index はきれいなままで、ステージ変更の確認をすり抜けます。その状態で進むと、`--squash` は AI が見ていないコミットまで巻き込み、`--amend` は説明していない別のコミットを書き換えてしまいます。
-`--reword` refuses to run while a rebase is in progress. It ends every failed rebase with `git rebase --abort`, so starting one on top of yours would discard your in-progress conflict resolution. Finish or abort your rebase first.
143
143
- Committing aborts if the staged content changed while the message was being generated (git-sc compares the index tree before and after). The generated message describes the old content, so committing the new one would be wrong. Just re-run. `--squash` re-checks for newly staged changes the same way, right before it resets.
144
+
- Committing, `--amend`, and `--squash` also abort if `HEAD` moved during generation. What `--squash` folds and `--amend` rewrites comes from the history rather than the index, so a commit made in another terminal leaves the index clean and slips past the staged-changes check — a `--squash` would then fold in a commit the AI never saw, and an `--amend` would overwrite a different commit than the one it described.
- Required for unattended runs. If the confirmation prompt reaches end-of-file on stdin (for example when git-sc is invoked from a script or hook with stdin closed), the run aborts with an error instead of taking the `[Y/n]` default. An empty line typed by a user still means yes; "no input at all" does not, because the same prompt guards `--amend`, `--squash`, and `--reword`
203
+
200
204
`--quiet` behavior:
201
205
- Suppresses progress, preview, and success/cancel messages in normal/amend/squash/reword flows
202
206
- Keeps error output visible
@@ -455,7 +459,7 @@ If you have the `ai-usage` CLI installed, git-sc can drop providers whose accoun
455
459
```toml
456
460
[ai_usage]
457
461
enabled = true
458
-
command = ["ai-usage", "--json"] # optional
462
+
command = ["ai-usage", "--json"] # optional (`~` in the executable path is expanded)
459
463
threshold_percent = 95# skip a step at or above this usage
460
464
window = "nearest"# weekly | five_hour | nearest (the higher of the two)
0 commit comments