{"thread":{"id":"61845","subject":"[PATCH] doc: difference in location to apply is \"offset\", not \"fuzz\"","startedAt":"2024-07-25T17:27:34Z","lastAt":"2024-07-25T17:27:34Z","messageCount":1,"participants":["Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"499371","messageId":"xmqqplr1fkla.fsf@gitster.g","threadId":"61845","inReplyTo":null,"subject":"[PATCH] doc: difference in location to apply is \"offset\", not \"fuzz\"","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2024-07-25T17:27:29Z","receivedAt":"2024-07-25T17:27:34Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"The documentation to \"git rebase\" says that the line numbers (in the\nrebased change) may not exactly be the same as the line numbers the\nchange gets replayed on top of the new base, but uses a wrong noun\n\"fuzz\".  It should have said \"offset\".\n\nThey are both terms of art.  \"fuzz\" is about context lines not\nexactly matching.  \"offset\" is about the difference in the location\nthat a change was taken from the original and the change gets\nreplayed on the target.  \"offset\" is often inevitable and part of\nnormal life.  \"fuzz\" on the other hand is often a sign of trouble\n(and indeed \"Git\" refuses to apply a change with \"fuzz\", except\nthere are options to be fuzzy about whitespaces).\n\nSigned-off-by: Junio C Hamano <gitster@pobox.com>\n---\n Documentation/git-rebase.txt | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git c/Documentation/git-rebase.txt w/Documentation/git-rebase.txt\nindex 74df345f9e..b18cdbc023 100644\n--- c/Documentation/git-rebase.txt\n+++ w/Documentation/git-rebase.txt\n@@ -737,7 +737,7 @@ The 'apply' backend works by creating a sequence of patches (by calling\n `format-patch` internally), and then applying the patches in sequence\n (calling `am` internally).  Patches are composed of multiple hunks,\n each with line numbers, a context region, and the actual changes.  The\n-line numbers have to be taken with some fuzz, since the other side\n+line numbers have to be taken with some offset, since the other side\n will likely have inserted or deleted lines earlier in the file.  The\n context region is meant to help find how to adjust the line numbers in\n order to apply the changes to the right lines.  However, if multiple\n"}]}