We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477079e commit 908184cCopy full SHA for 908184c
diff-so-fancy
@@ -433,22 +433,20 @@ sub boolean {
433
}
434
435
# Memoize getting the git config
436
-{
437
- my $static_config;
+sub git_config_raw {
+ state $static_config;
438
439
- sub git_config_raw {
440
- if ($static_config) {
441
- # If we already have the config return that
442
- return $static_config;
443
- }
+ if ($static_config) {
+ # If we already have the config return that
+ return $static_config;
+ }
444
445
- my $cmd = "git config --list";
446
- my @out = `$cmd`;
+ my $cmd = "git config --list";
+ my @out = `$cmd`;
447
448
- $static_config = \@out;
+ $static_config = \@out;
449
450
- return \@out;
451
+ return \@out;
452
453
454
# Fetch a textual item from the git config
0 commit comments