mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Adjusted documentation about the dirty flag.
This commit is contained in:
parent
1b636855a9
commit
a00232d857
@ -31,8 +31,8 @@ steps:
|
||||
executable binary or example target. {{man "cargo-install" 1}} will use the
|
||||
packaged lock file if the `--locked` flag is used.
|
||||
- A `.cargo_vcs_info.json` file is included that contains information
|
||||
about the current VCS checkout hash if available (not included with
|
||||
`--allow-dirty`).
|
||||
about the current VCS checkout hash if available, and whether or not the
|
||||
worktree is dirty.
|
||||
3. Extract the `.crate` file and build it to verify it can build.
|
||||
- This will rebuild your package from scratch to ensure that it can be
|
||||
built from a pristine state. The `--no-verify` flag can be used to skip
|
||||
@ -52,12 +52,16 @@ Will generate a `.cargo_vcs_info.json` in the following format
|
||||
```javascript
|
||||
{
|
||||
"git": {
|
||||
"sha1": "aac20b6e7e543e6dd4118b246c77225e3a3a1302"
|
||||
"sha1": "aac20b6e7e543e6dd4118b246c77225e3a3a1302",
|
||||
"dirty": true
|
||||
},
|
||||
"path_in_vcs": ""
|
||||
}
|
||||
```
|
||||
|
||||
`dirty` indicates whether or not the Git worktree was dirty when the package
|
||||
was built.
|
||||
|
||||
`path_in_vcs` will be set to a repo-relative path for packages
|
||||
in subdirectories of the version control repository.
|
||||
|
||||
|
@ -29,8 +29,8 @@ DESCRIPTION
|
||||
packaged lock file if the --locked flag is used.
|
||||
|
||||
o A .cargo_vcs_info.json file is included that contains information
|
||||
about the current VCS checkout hash if available (not included
|
||||
with --allow-dirty).
|
||||
about the current VCS checkout hash if available, and whether or
|
||||
not the worktree is dirty.
|
||||
|
||||
3. Extract the .crate file and build it to verify it can build.
|
||||
o This will rebuild your package from scratch to ensure that it can
|
||||
@ -51,11 +51,15 @@ DESCRIPTION
|
||||
|
||||
{
|
||||
"git": {
|
||||
"sha1": "aac20b6e7e543e6dd4118b246c77225e3a3a1302"
|
||||
"sha1": "aac20b6e7e543e6dd4118b246c77225e3a3a1302",
|
||||
"dirty": true
|
||||
},
|
||||
"path_in_vcs": ""
|
||||
}
|
||||
|
||||
dirty indicates whether or not the Git worktree was dirty when the
|
||||
package was built.
|
||||
|
||||
path_in_vcs will be set to a repo-relative path for packages in
|
||||
subdirectories of the version control repository.
|
||||
|
||||
|
@ -26,8 +26,8 @@ steps:
|
||||
executable binary or example target. [cargo-install(1)](cargo-install.html) will use the
|
||||
packaged lock file if the `--locked` flag is used.
|
||||
- A `.cargo_vcs_info.json` file is included that contains information
|
||||
about the current VCS checkout hash if available (not included with
|
||||
`--allow-dirty`).
|
||||
about the current VCS checkout hash if available, and whether or not the
|
||||
worktree is dirty.
|
||||
3. Extract the `.crate` file and build it to verify it can build.
|
||||
- This will rebuild your package from scratch to ensure that it can be
|
||||
built from a pristine state. The `--no-verify` flag can be used to skip
|
||||
@ -47,12 +47,16 @@ Will generate a `.cargo_vcs_info.json` in the following format
|
||||
```javascript
|
||||
{
|
||||
"git": {
|
||||
"sha1": "aac20b6e7e543e6dd4118b246c77225e3a3a1302"
|
||||
"sha1": "aac20b6e7e543e6dd4118b246c77225e3a3a1302",
|
||||
"dirty": true
|
||||
},
|
||||
"path_in_vcs": ""
|
||||
}
|
||||
```
|
||||
|
||||
`dirty` indicates whether or not the Git worktree was dirty when the package
|
||||
was built.
|
||||
|
||||
`path_in_vcs` will be set to a repo-relative path for packages
|
||||
in subdirectories of the version control repository.
|
||||
|
||||
|
@ -43,8 +43,8 @@ packaged lock file if the \fB\-\-locked\fR flag is used.
|
||||
.sp
|
||||
.RS 4
|
||||
\h'-04'\(bu\h'+02'A \fB\&.cargo_vcs_info.json\fR file is included that contains information
|
||||
about the current VCS checkout hash if available (not included with
|
||||
\fB\-\-allow\-dirty\fR).
|
||||
about the current VCS checkout hash if available, and whether or not the
|
||||
worktree is dirty.
|
||||
.RE
|
||||
.RE
|
||||
.sp
|
||||
@ -74,13 +74,17 @@ Will generate a \fB\&.cargo_vcs_info.json\fR in the following format
|
||||
.nf
|
||||
{
|
||||
"git": {
|
||||
"sha1": "aac20b6e7e543e6dd4118b246c77225e3a3a1302"
|
||||
"sha1": "aac20b6e7e543e6dd4118b246c77225e3a3a1302",
|
||||
"dirty": true
|
||||
},
|
||||
"path_in_vcs": ""
|
||||
}
|
||||
.fi
|
||||
.RE
|
||||
.sp
|
||||
\fBdirty\fR indicates whether or not the Git worktree was dirty when the package
|
||||
was built.
|
||||
.sp
|
||||
\fBpath_in_vcs\fR will be set to a repo\-relative path for packages
|
||||
in subdirectories of the version control repository.
|
||||
.sp
|
||||
|
Loading…
x
Reference in New Issue
Block a user