1PACKIT SOURCE-GIT UpPaDcAkTiEt-SsOoUuRrCcEe--GgIiTt(1u)pdatPeA-CsKoIuTrcSeO-UgRiCtE-MGaInTuaUlPDATE-SOURCE-GIT(1)
2
3
4
6 packit-source-git-update-source-git - Update a source-git repository
7 based on a...
8
10 packit source-git update-source-git [OPTIONS] DIST_GIT SOURCE_GIT [RE‐
11 VISION_RANGE]
12
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
18 and additional packaging files from a dist-git repository.
19
20 Revision range represents part of dist-git history which is sup‐
21 posed
22 to be synchronized. Use `HEAD~..` if you want to synchronize the
23 last
24 commit from dist-git. For more information on possible revision
25 range
26 formats, see gitrevisions(7). If the revision range is not speci‐
27 fied,
28 dist-git commits with no counterpart in source-git will be synchro‐
29 nized.
30
31 If patches or the sources file in the spec file changed, the com‐
32 mand
33 exits with return code 2. Such changes are not supported by this
34 command, code changes should happen in the source-git repo.
35
36 Inapplicable changes to the .gitignore file are ignored since the
37 file may not be synchronized between dist-git and source-git.
38
39 This command, by default, performs only local operations and uses
40 the
41 content of the source-git and dist-git repositories as it is, no
42 checkout
43 or fetch is performed.
44
45 After the synchronization is done, packit will inform about the
46 changes
47 it has performed and about differences between source-git and dist-
48 git
49 prior to the synchronization process.
50
51 Dist-git commit messages are preserved and used when creating new
52 source-git commits, but a 'From-dist-git-commit' trailer is ap‐
53 pended
54 to them to mark the hash of the dist-git commit from which they
55 are created.
56
57 Examples
58
59 Take the extra (not synchronized) commit(s) of systemd dist-git
60 repo and
61 copy the spec file and other packaging files into the source-git
62 repo:
63
64
65 $ packit source-git update-source-git rpms/systemd src/systemd
66
67 Synchronize changes from the last three dist-git commits:
68
69
70 $ packit source-git update-source-git rpms/systemd src/systemd
71 HEAD~3..
72
73
75 -f, --force
76 Don't check the synchronization status of the source-git and
77 dist-git repos prior to performing the update.
78
79
80
810.87.1 2023-11P-A3C0KIT SOURCE-GIT UPDATE-SOURCE-GIT(1)