From ec99162c59600528db783fcfdbc427bb4cd11395 Mon Sep 17 00:00:00 2001 From: Tim Bailey-Jones Date: Fri, 5 Sep 2025 00:28:28 -0400 Subject: [PATCH] Update examples-from-user-filed-issues.md: = vs. == bug. Classic `=` used in conditional where comparison `==` was intended. I tried the example and ran into: ``` SyntaxError: cannot assign to attribute here. Maybe you meant '==' instead of '='? ``` This fixes that. --- Documentation/examples-from-user-filed-issues.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/examples-from-user-filed-issues.md b/Documentation/examples-from-user-filed-issues.md index 81f8250c..89d6fee9 100644 --- a/Documentation/examples-from-user-filed-issues.md +++ b/Documentation/examples-from-user-filed-issues.md @@ -233,7 +233,7 @@ where the author email is currently `example@test.com`: ``` git filter-repo --refs main~5..main --commit-callback ' - if commit.author_email = b"example@test.com": + if commit.author_email == b"example@test.com": commit.author_name = "Raphaël González".encode() commit.author_email = b"rgonzalez@test.com" ' @@ -528,4 +528,4 @@ replacing every blob with. It is great. ``` -which has no leading spaces on any lines. \ No newline at end of file +which has no leading spaces on any lines.