|
|
Subscribe / Log in / New account

git-diff(1) with man(7) source

git-diff(1) with man(7) source

Posted Sep 9, 2024 13:08 UTC (Mon) by alx.manpages (subscriber, #145117)
In reply to: Maybe one of the problems here is troff by metan
Parent article: Man pages maintenance suspended

The git-diff(1) and gitattributes(5) advice in ./CONTRIBUTING.d/git improves reviewing man(7) diffs.

<https://git.kernel.org/pub/scm/docs/man-pages/man-pages.g...>

```
git-diff(1), gitattributes(5)
To produce useful hunk contexts in manual pages, we need to hack
git(1)'s idea of a function name, and also to tell git what is a
manual page.

$ git config --global diff.man.xfuncname '^\.S[SHsh] .*$';
$ echo '*.[0-9]* diff=man' >>~/.config/git/attributes;
```


to post comments


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds