1OSTREE COMMIT(1) ostree commit OSTREE COMMIT(1)
2
3
4
6 ostree-commit - Commit a new revision
7
9 ostree commit [OPTIONS...] --branch= {BRANCH} [PATH]
10
12 This allows you to commit changes to a branch. The specification of the
13 branch is required. The command will print the checksum of a successful
14 commit.
15
17 --subject, -s="SUBJECT"
18 One line subject. (optional)
19
20 --body, -m="BODY"
21 Full description. (optional)
22
23 --editor, -e
24 Open a text editor for the commit description. It will use
25 OSTREE_EDITOR, VISUAL, EDITOR, or vi, in descending order of
26 preference. The commit will be aborted if the message is left
27 empty.
28
29 --branch, -b="BRANCH"
30 Branch. Required, unless --orphan is given.
31
32 --tree="dir=PATH" or "tar=TARFILE" or "ref=COMMIT"
33 Overlay the given argument as a tree. When committing an archive,
34 the TARFILE can be specified as - to read the archive from standard
35 input.
36
37 --add-metadata-string="KEY=VALUE"
38 Add a key/value pair to metadata.
39
40 --add-detached-metadata-string="KEY=VALUE"
41 Add a key/value pair to detached metadata.
42
43 --owner-uid="UID"
44 Set file ownership user id.
45
46 --owner-gid="GID"
47 Set file ownership group id.
48
49 --no-xattrs
50 Do not import extended attributes.
51
52 --link-checkout-speedup
53 Optimize for commits of trees composed of hardlinks into the
54 repository.
55
56 --tar-autocreate-parents
57 When loading tar archives, automatically create parent directories
58 as needed.
59
60 --skip-if-unchanged
61 If the contents are unchanged from previous commit, do nothing.
62
63 --consume
64 When committing from a local directory (i.e. not an archive or
65 --tree=ref), assume ownership of the content. This may simply
66 involve deleting it, but if possible, the content may simply be
67 rename()ed into the repository rather than creating a new copy.
68
69 --statoverride="PATH"
70 File containing list of modifications to make permissions (file
71 mode, followed by space, followed by file path).
72
73 --skip-list="PATH"
74 File containing list of file paths to skip (one path per line).
75
76 --table-output
77 Output more information in a KEY: VALUE format.
78
79 --generate-sizes
80 Generate size information along with commit metadata.
81
82 --gpg-sign="KEY-ID"
83 GPG Key ID with which to sign the commit (if have GPGME - GNU
84 Privacy Guard Made Easy).
85
86 --gpg-homedir="HOMEDIR"
87 GPG home directory to use when looking for keyrings (if have GPGME
88 - GNU Privacy Guard Made Easy).
89
90 --timestamp="TIMESTAMP"
91 Override the timestamp of the commit to TIMESTAMP.
92
93 --orphan
94 Create a commit without writing to a ref (branch)
95
96 --fsync="POLICY"
97 POLICY is a boolean which specifies whether fsync should be used or
98 not. Default to true.
99
101 $ ostree commit --branch=my-branch --subject="Initial commit"
102
103 67e382b11d213a402a5313e61cbc69dfd5ab93cb07fbb8b71c2e84f79fa5d7dc
104
105
106
107OSTree OSTREE COMMIT(1)