diffman-git(1)

diffman-git1

Compare changes to manual pages line by line

Usage

diffman-git [diff-options ...] [[base-commit] commit] [-- [path ...]]

Overview

The diffman-git command formats a manual page at two git(1) commits, and then runs diff(1) on the formatted outputs.

Parameters

If the commit is not specified, it diffs the working directory against HEAD.

If the base-commit is not specified, the comparison is done against the previous commit.

path restricts the files that are compared.

Options

-s

Report when two files are the same.

-Un

output n (default 3) lines of unified context.

-w

Ignore all white space.

Environment

See man(1).

Examples

$ 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 */ );

From man-pages-utils 6.20-1 in Arch Linux 2026-11-07. Parsed by carta from the page's man source.