|
@@ 41-48 (lines=8) @@
|
| 38 |
|
$this->gitConfigFile = $gitConfigFile; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
public function get(string $name, bool $global = false, bool $system = false, bool $allScopes = true) |
| 42 |
|
{ |
| 43 |
|
$command = $this->getScopeFlags($global, $system, $allScopes); |
| 44 |
|
|
| 45 |
|
$command .= ' --get ' . $name; |
| 46 |
|
|
| 47 |
|
return $this->executeCommand($command); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public function set(string $name, string $value, bool $global = false, bool $system = false) |
| 51 |
|
{ |
|
@@ 59-66 (lines=8) @@
|
| 56 |
|
return $this->executeCommand($command); |
| 57 |
|
} |
| 58 |
|
|
| 59 |
|
public function unSet(string $name, bool $global = false, bool $system = false) |
| 60 |
|
{ |
| 61 |
|
$command = $this->getScopeFlags($global, $system); |
| 62 |
|
|
| 63 |
|
$command .= ' --unset ' . $name; |
| 64 |
|
|
| 65 |
|
return $this->executeCommand($command); |
| 66 |
|
} |
| 67 |
|
|
| 68 |
|
private function getScopeFlags(bool $global = false, bool $system = false, bool $allScopes = null) |
| 69 |
|
{ |