mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
.
This commit is contained in:
parent
695f1a9af8
commit
faa65d7856
2 changed files with 19 additions and 1 deletions
|
@ -69,3 +69,16 @@ Release: release:{}[]
|
|||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
pub struct PromoteCmd {
|
||||
pub dry_run: bool,
|
||||
}
|
||||
|
||||
impl PromoteCmd {
|
||||
pub fn run(self) -> Result<()> {
|
||||
run!("git switch release")?;
|
||||
run!("git fetch upstream")?;
|
||||
run!("git reset --hard upstream/release")?;
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue