summaryrefslogtreecommitdiffstats
path: root/upstream/archlinux/man1/pkgctl-repo-switch.1
blob: 2e9ee91335b460aabe691a7ea624fb6c59f97236 (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
'\" t
.\"     Title: pkgctl-repo-switch
.\"    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 "PKGCTL\-REPO\-SWITCH" "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"
pkgctl-repo-switch \- Switch a package repository to a specified version
.SH "SYNOPSIS"
.sp
pkgctl repo switch [OPTIONS] [VERSION] [PKGBASE]\&...
.SH "DESCRIPTION"
.sp
Switch a package source repository to a specified version, tag or branch\&. The working tree and the index are updated to match the specified ref\&.
.sp
If a version identifier is specified in the pacman version format, that identifier is automatically translated to the Git tag name accordingly\&.
.sp
The current working directory is used if no PKGBASE is specified\&.
.SH "OPTIONS"
.PP
\fB\-\-discard\-changes\fR
.RS 4
Proceed even if the index or the working tree differs from HEAD\&. Both the index and working tree are restored to match the switching target\&.
.RE
.PP
\fB\-f, \-\-force\fR
.RS 4
An alias for
\fI\-\-discard\-changes\fR\&.
.RE
.PP
\fB\-h, \-\-help\fR
.RS 4
Show a help text
.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\&.