Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
CLAUDE.md: Use format-patch for rewording commit messages.
Alya Abbott01ba303cd1e3
diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.mdindex 1c26a50633b..ccaa8fde867 100644--- a/.claude/CLAUDE.md+++ b/.claude/CLAUDE.md@@ -203,12 +203,17 @@ Since `git rebase -i` requires an interactive editor, useNote: `--autosquash` alone without `-i` does **not** reorder orsquash anything.-3. **Rewording commit messages:** In the todo script, use `exec` lines:- ```- pick <hash> Original message- exec GIT_EDITOR=/path/to/new-msg-script.sh git commit --amend+3. **Rewording commit messages:** Use `git format-patch` to export+ commits as patch files, edit the message headers in the patch+ files, then reapply:++ ```bash+ git format-patch <base> -o /tmp/patches/+ # Edit the commit message in each /tmp/patches/000N-*.patch file+ # (the message is between the Subject: line and the --- line)+ git reset --hard <base>+ git am /tmp/patches/*.patch```- where the message script writes the new commit message to `$1`.## Testing Requirements