diffman-git(1)
diffman-git(1) ๐
okay so bestie, welcome to the General Commands Manual page for diffman-git โ the manual name is literally right there in the title, folded in cute instead of doing that stiff header line. This whole page is giving โcompare manual pages at two git commits, then diff the formatted outputsโ energy. No cap.
๐ NAME ๐
diffman-git โ compare changes to manual pages line by line. Thatโs the name and the one-liner, periodt.
๐ธ SYNOPSIS ๐ธ
diffman-git [diff-options ...] [[base-commit] commit]
๐ฆ DESCRIPTION ๐ฆ
diffman-git formats a manual page at two git(1) commits, and then runs diff(1) on the formatted outputs. Like, it formats first and diffs after โ thatโs the whole little routine, and it ate.
If commit is not specified, it diffs the working directory against HEAD. If base-commit is not specified, the comparison is done against the previous commit. Very โsensible defaults, main character energyโ of it, honestly.
โจ OPTIONS โจ
-sโ report when two files are the same. A little โsame bestie!โ moment, if you will.-Unโ output n lines of unified context, and n defaults to3. Iconic.-wโ ignore all white space. Periodt.
๐ ENVIRONMENT ๐
See man(1). Thatโs the entire environment section โ a tiny little redirect, and honestly? respect.
๐ EXAMPLES ๐
hereโs the example exactly as it lives in the manual. Code is sacred, so Iโm not touching it:
$ MAN_KEEP_FORMATTING= diffman-git 437e4afec6ca | less -R;
--- 437e4afec6ca^:man/man3/sem_open.3
+++ 437e4afec6ca:man/man3/sem_open.3
@@ -14,3 +14,2 @@
- sem_t *sem_open(const char *name, int oflag);
- sem_t *sem_open(const char *name, int oflag,
- mode_t mode, unsigned int value);
+ sem_t *sem_open(const char *name, int oflag, ...
+ /* mode_t mode, unsigned int value */ );
see? formatted manual page, diff, and less -R all in one little command line, with MAN_KEEP_FORMATTING= sitting right there with an empty value. Obsessed.
๐ SEE ALSO ๐
diff(1), man(1), git(1), less(1) โ thatโs the squad.
mwah ๐ โ from the Linux man-pages 6.18 era, dated 2025-05-17, and thatโs the whole page, bestie ๐ซถ
๐ฆ where this page comes from
- alpine 3.24: man-pages 6.18-r0 ยท GPL-2.0-or-later
- nixos 26.05: man-pages 6.18
- ๐ the page's license: Linux-man-pages-copyleft
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms