aboutsummaryrefslogtreecommitdiffstats
path: root/man/man1/diffman-git.1
blob: b92da5ce4fefbb8aa8124efdbe48e472e2fd6ee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.\" Copyright, The authors of the Linux man-pages project
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
.TH diffman\-git 1 (date) "Linux man-pages (unreleased)"
.SH NAME
diffman\-git
\-
compare changes to manual pages line by line
.SH SYNOPSIS
.SY diffman\-git
.RI [ diff-options \~.\|.\|.\&]
.RI [[ base-commit ]
.IR commit ]
.YS
.SH DESCRIPTION
The
.B diffman\-git
command
formats a manual page at two
.BR git (1)
commits,
and then runs
.BR diff (1)
on the formatted outputs.
.P
If the
.I commit
is not specified,
it diffs the working directory against HEAD.
.P
If the
.I base-commit
is not specified,
the comparison is done against the previous commit.
.SH OPTIONS
.TP
.B \-s
Report when two files are the same.
.TP
.BI \-U n
output
.I n
(default 3)
lines of unified context.
.TP
.B \-w
Ignore all white space.
.SH ENVIRONMENT
See
.BR man (1).
.SH EXAMPLES
.EX
.RB $\~ "MAN_KEEP_FORMATTING= diffman\-git 437e4afec6ca | less \-R" ;
\-\-\- 437e4afec6ca\[ha]: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 */ );
.EE
.SH SEE ALSO
.BR diff (1),
.BR man (1),
.BR git (1),
.BR less (1)