1PACKIT SOURCE-GIT UpPaDcAkTiEt-SsOoUuRrCcEe--GgIiTt(1u)pdatPeA-CsKoIuTrcSeO-UgRiCtE-MGaInTuaUlPDATE-SOURCE-GIT(1)
2
3
4

NAME

6       packit-source-git-update-source-git  -  Update  a source-git repository
7       based on a...
8

SYNOPSIS

10       packit source-git update-source-git [OPTIONS] DIST_GIT SOURCE_GIT  [RE‐
11       VISION_RANGE]
12

DESCRIPTION

14       Update a source-git repository based on a dist-git repository.
15
16       Update  a  source-git  repository  with the selected checkout of a spec
17       file and additional packaging files from a dist-git repository.
18
19       Revision range represents part of dist-git history which is supposed to
20       be synchronized. Use `HEAD~..` if you want to synchronize the last com‐
21       mit from dist-git. For more information on possible revision range for‐
22       mats,  see  gitrevisions(7).  If  the  revision range is not specified,
23       dist-git commits with no counterpart in  source-git  will  be  synchro‐
24       nized.
25
26       If  patches  or  the sources file in the spec file changed, the command
27       exits with return code 2. Such changes are not supported by  this  com‐
28       mand, code changes should happen in the source-git repo.
29
30       Inapplicable  changes to the .gitignore file are ignored since the file
31       may not be synchronized between dist-git and source-git.
32
33       This command, by default, performs only local operations and  uses  the
34       content of the source-git and dist-git repositories as it is, no check‐
35       out or fetch is performed.
36
37       After the synchronization is done, packit will inform about the changes
38       it  has performed and about differences between source-git and dist-git
39       prior to the synchronization process.
40
41       Dist-git commit messages are  preserved  and  used  when  creating  new
42       source-git commits, but a 'From-dist-git-commit' trailer is appended to
43       them to mark the hash of the dist-git commit from which they  are  cre‐
44       ated.
45
46       Examples
47
48       Take  the  extra  (not synchronized) commit(s) of systemd dist-git repo
49       and copy the spec file and other packaging files  into  the  source-git
50       repo:
51
52
53           $ packit source-git update-source-git rpms/systemd src/systemd
54
55       Synchronize changes from the last three dist-git commits:
56
57
58           $  packit  source-git  update-source-git  rpms/systemd  src/systemd
59       HEAD~3..
60

OPTIONS

62       -f, --force
63              Don't check the synchronization status  of  the  source-git  and
64              dist-git repos prior to performing the update.
65
66
67
68                                  2022-06P-A2C9KIT SOURCE-GIT UPDATE-SOURCE-GIT(1)
Impressum