summaryrefslogtreecommitdiffstats
path: root/upstream/archlinux/man1/diffpkg.1
blob: 0fcabb708d97e4312df55016b9e0e38c1c0387a0 (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
'\" t
.\"     Title: diffpkg
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 02/14/2024
.\"    Manual: \ \&
.\"    Source: \ \&
.\"  Language: English
.\"
.TH "DIFFPKG" "1" "02/14/2024" "\ \&" "\ \&"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
diffpkg \- Compare package files using different modes\&.
.SH "SYNOPSIS"
.sp
diffpkg [OPTIONS] [MODES] [FILE|PKGNAME\&...]
.SH "DESCRIPTION"
.sp
Searches for a locally built package corresponding to the PKGBUILD, and downloads the last version of that package from the Pacman repositories\&. It then compares the package archives using different modes while using simple tar content list by default\&.
.sp
When given one package, use it to diff against the locally built one\&. When given two packages, diff both packages against each other\&.
.sp
In either case, a package name will be converted to a filename from the cache or pool, and diffpkg will proceed as though this filename was initially specified\&.
.SH "OPTIONS"
.PP
\fB\-M, \-\-makepkg\-config\fR
.RS 4
Set an alternate makepkg configuration file
.RE
.PP
\fB\-P, \-\-pool\fR=\fIDIR\fR
.RS 4
Search diff target in pool dir (default
\*(Aq/srv/ftp/pool\*(Aq)
.RE
.PP
\fB\-v, \-\-verbose\fR
.RS 4
Provide more detailed/unfiltered output
.RE
.PP
\fB\-h, \-\-help\fR
.RS 4
Show a help text
.RE
.SH "OUTPUT OPTIONS"
.PP
\fB\-\-color\fR[=\fIWHEN\fR]
.RS 4
Color output;
\fIWHEN\fR
is
\*(Aqnever\*(Aq,
\*(Aqalways\*(Aq, or
\*(Aqauto\*(Aq; Plain
\fB\-\-color\fR
means
\fB\-\-color=\fR\fB\fIauto\fR\fR
.RE
.PP
\fB\-u, \-U, \-\-unified\fR
.RS 4
Output 3 lines of unified context
.RE
.PP
\fB\-y, \-\-side\-by\-side\fR
.RS 4
Output in two columns
.RE
.PP
\fB\-W, \-\-width\fR[=\fINUM\fR]
.RS 4
Output at most
\fINUM\fR
(default
\*(Aqauto\*(Aq) print columns;
\fINUM\fR
can be
\*(Aqauto\*(Aq,
\*(Aqcolumns\*(Aq
or a number\&.
\*(Aqauto\*(Aq
will be resolved to the maximum line length of both files, guaranteeing the diff to be uncut\&.
.RE
.SH "MODES"
.PP
\fB\-l, \-\-list\fR
.RS 4
Activate tar content list diff mode (default)
.RE
.PP
\fB\-d, \-\-diffoscope\fR
.RS 4
Activate diffoscope diff mode
.RE
.PP
\fB\-p, \-\-pkginfo\fR
.RS 4
Activate \&.PKGINFO diff mode
.RE
.PP
\fB\-b, \-\-buildinfo\fR
.RS 4
Activate \&.BUILDINFO diff mode
.RE
.SH "HOMEPAGE"
.sp
\fIhttps://gitlab\&.archlinux\&.org/archlinux/devtools\fR
.sp
Please report bugs and feature requests in the issue tracker\&. Please do your best to provide a reproducible test case for bugs\&.