Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
CLAUDE.md: Note that amend is simpler than fixup+rebase for HEAD.
Alya Abbott95b5e1ddd1b1
diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.mdindex ff0aafca893..5181c53e11f 100644--- a/.claude/CLAUDE.md+++ b/.claude/CLAUDE.md@@ -183,7 +183,11 @@ Fixes #123.Since `git rebase -i` requires an interactive editor, use`GIT_SEQUENCE_EDITOR` to supply the todo list via a script:-1. **Squashing fixups into existing commits:** Create fixup commits with+1. **Updating the HEAD commit:** If the commit you need to modify is+ already at HEAD, just use `git commit --amend` directly. The+ fixup+rebase workflow below is only needed for non-HEAD commits.++2. **Squashing fixups into existing commits:** Create fixup commits with`git commit --fixup=<target-hash>`, then write a shell script thatoutputs the desired todo (with `pick` and `fixup` lines in order)and run:@@ -195,7 +199,7 @@ Since `git rebase -i` requires an interactive editor, useNote: `--autosquash` alone without `-i` does **not** reorder orsquash anything.-2. **Rewording commit messages:** In the todo script, use `exec` lines:+3. **Rewording commit messages:** In the todo script, use `exec` lines:```pick <hash> Original messageexec GIT_EDITOR=/path/to/new-msg-script.sh git commit --amend