79409058

Date: 2025-02-03 14:11:16
Score: 0.5
Natty:
Report link

Ok, so not knowing Python at all I wrote some pseudocode in the question, and @phd has helpfully pointed out in the comments that it is actually the fully working answer:

git filter-repo --commit-callback 'if commit.original_id == b"123abc...": commit.parents.append(b"789def...")'

And the docs are here.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @phd
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Tom V