mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 19:22:33 +00:00
improve uncommitted changes cargo-package message
fixes #7003 Explicitly state what the suggested flag `--allow-dirty` actually does when packaging/publishing the crate. Primarily, that the uncommited changes are included within the resulting package.
This commit is contained in:
parent
143aaed0ee
commit
69226ed887
|
@ -291,7 +291,7 @@ fn check_repo_state(
|
|||
failure::bail!(
|
||||
"{} files in the working directory contain changes that were \
|
||||
not yet committed into git:\n\n{}\n\n\
|
||||
to proceed despite this, pass the `--allow-dirty` flag",
|
||||
to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag",
|
||||
dirty.len(),
|
||||
dirty.join("\n")
|
||||
)
|
||||
|
|
|
@ -758,7 +758,7 @@ committed into git:
|
|||
|
||||
Cargo.toml
|
||||
|
||||
to proceed despite this, pass the `--allow-dirty` flag
|
||||
to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
|
|
@ -396,7 +396,7 @@ committed into git:
|
|||
|
||||
bar
|
||||
|
||||
to proceed despite this, pass the `--allow-dirty` flag
|
||||
to proceed despite this and include the uncommited changes, pass the `--allow-dirty` flag
|
||||
",
|
||||
)
|
||||
.run();
|
||||
|
|
Loading…
Reference in a new issue