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 to 3. 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