History

change!: Use `helper::Context` in `helper::Action::Fill()` (#450)

That way additional information, like from configuration, can be passed as well.

Sebastian Thiel committed 4 years ago

Commit 9c6f0241 parent 0e76efe5 files · +22 −147Browse files

Showing the changes to git-credentials/src/program.rs (1 of 5 files). Show all

Unified · Split

git-credentials/src/program.rs+1−1
@@ -12,7 +12,7 @@ impl Helper for Program { · 11 unmodified lines
12 type Send = std::process::ChildStdin;12 type Send = std::process::ChildStdin;
13 type Receive = std::process::ChildStdout;13 type Receive = std::process::ChildStdout;
14 14
15 fn start(&mut self, action: &helper::Action<'_>) -> std::io::Result<(Self::Send, Option<Self::Receive>)> {15 fn start(&mut self, action: &helper::Action) -> std::io::Result<(Self::Send, Option<Self::Receive>)> {
16 match self {16 match self {
17 Program::Ready(kind) => {17 Program::Ready(kind) => {
18 let (mut cmd, is_custom) = match kind {18 let (mut cmd, is_custom) = match kind {