remote-helper: Small improvements
This patch combines three only loosely connected improvements to radicle-remote-helper, which also touch radicle and radicle-cli:
- Interpret the
verbosityoption part of the Git remote helper protocol. - Move interpretation of output of
gitcommands to binary crates. - Prevent doubly verifying pushes from working copy to storage.
6 files changed
+158
-50
11e8b89b
→
37903795
modified crates/radicle-cli/src/commands/patch/checkout.rs
@@ -132,7 +132,7 @@ fn find_patch_commit<'a>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/src/git.rs
@@ -132,11 +132,23 @@ pub fn repository() -> Result<Repository, anyhow::Error> {
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-remote-helper/src/fetch.rs
@@ -7,7 +7,7 @@ use thiserror::Error;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -31,6 +31,7 @@ pub fn run<R: ReadRepository>(
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -62,7 +63,7 @@ pub fn run<R: ReadRepository>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-remote-helper/src/lib.rs
@@ -70,6 +70,40 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -84,6 +118,7 @@ pub struct Options {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -139,9 +174,15 @@ pub fn run(profile: radicle::Profile) -> Result<(), Error> {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -167,7 +208,7 @@ pub fn run(profile: radicle::Profile) -> Result<(), Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-remote-helper/src/push.rs
@@ -6,6 +6,7 @@ mod error;
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -31,7 +32,7 @@ use radicle::{git, rad};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -124,6 +125,15 @@ pub enum Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -346,8 +356,17 @@ pub fn run(
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -487,7 +506,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -601,7 +620,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -671,6 +690,7 @@ fn push<G>(
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -680,7 +700,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -863,6 +883,7 @@ fn push_ref(
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -870,21 +891,32 @@ fn push_ref(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle/src/git.rs
@@ -54,6 +54,38 @@ impl std::fmt::Display for Version {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -722,29 +754,18 @@ pub fn run<P, S, K, V>(
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -754,7 +775,7 @@ pub mod process {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -764,20 +785,21 @@ pub mod process {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
| + | |
| + | |
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|