Repository navigation
Commit d32f26f
ciq-cherry-pick.py: Drop git's conflict comment block from MERGE_MSG
When a cherry-pick hits a conflict, git appends a comment block to
MERGE_MSG ("# Conflicts:" followed by the conflicted paths).
manage_commit_message() reads MERGE_MSG, inserts the CIQ header block,
and writes the whole thing back, conflict comments included. The script
then exits telling the user to resolve the conflict and commit, and
committing with -F keeps those lines, since -F's default cleanup mode
only strips whitespace, not comments. The conflict block winds up in the
final commit message verbatim.
Fix it by dropping the tail of the message starting at the
"# Conflicts:" line before standardizing. Only the trailing
git-generated block goes; legitimate body lines starting with "#"
earlier in the message survive.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent b126c7d commit d32f26f
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
182 | 190 | | |
183 | 191 | | |
184 | 192 | | |
| |||
0 commit comments