{"thread":{"id":"58657","subject":"diff: Add support for man(7) pages","startedAt":"2022-10-20T12:19:29Z","lastAt":"2022-10-20T12:19:29Z","messageCount":1,"participants":["Alejandro Colomar"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"465290","messageId":"ce09bfae-091f-7c62-5e40-2784906d5370@gmail.com","threadId":"58657","inReplyTo":null,"subject":"diff: Add support for man(7) pages","fromName":"Alejandro Colomar","fromEmail":"alx.manpages@gmail.com","sentAt":"2022-10-20T12:19:06Z","receivedAt":"2022-10-20T12:19:29Z","isPatch":false,"sender":{"key":"alx.manpages@gmail.com","avatar":null},"body":"Hi!\n\nI added the following to my gitconfig and attributes files to improve \ndiffs in manual pages.  Would you mind adding support for them in git(1)?\n\nThanks,\n\nAlex\n\nP.S.: The extension I used in the attributes file is imperfect, since a \nglob wouldn't allow me as much precission as a regex.  With a regex, it \nwould be written as '\\.[1-9][[:lower:]]*$'.\n\n\n---\n\n     git: diff \"man\": Correctly interpret man(7) pages.\n\n     Signed-off-by: Alejandro Colomar <alx@kernel.org>\n\ndiff --git a/home/user/.config/git/attributes \nb/home/user/.config/git/attributes\nnew file mode 100644\nindex 0000000..652558f\n--- /dev/null\n+++ b/home/user/.config/git/attributes\n@@ -0,0 +1 @@\n+*.[1-9]* diff=man\ndiff --git a/home/user/.gitconfig b/home/user/.gitconfig\nindex 72ddc50..adb6cbb 100644\n--- a/home/user/.gitconfig\n+++ b/home/user/.gitconfig\n@@ -27,3 +27,5 @@\n         signingKey = A9348594CE31283A826FBDD8D57633D441E25BB5\n  [diff]\n         algorithm = histogram\n+[diff \"man\"]\n+       xfuncname = \"^\\\\.S[SH] .*$\"\n\n\n\n-- \n<http://www.alejandro-colomar.es/>\n"}]}