@@ -116,6 +116,15 @@ mod subsections {
116
116
pub const FILTER_PROCESS_DELAY : keys:: Boolean =
117
117
keys:: Boolean :: new_boolean ( "filterProcessDelay" , & Gitoxide :: CORE ) ;
118
118
119
+ /// The `gitoxide.core.externalCommandStderr` key (default `true`).
120
+ ///
121
+ /// If `true`, the default, `stderr` of worktree filter programs, or any other git-context bearing command
122
+ /// invoked will be inherited.
123
+ /// If `false`, it will be suppressed completely.
124
+ pub const EXTERNAL_COMMAND_STDERR : keys:: Boolean =
125
+ keys:: Boolean :: new_boolean ( "externalCommandStderr" , & Gitoxide :: CORE )
126
+ . with_environment_override ( "GIX_EXTERNAL_COMMAND_STDERR" ) ;
127
+
119
128
/// The `gitoxide.core.refsNamespace` key.
120
129
pub const REFS_NAMESPACE : RefsNamespace =
121
130
keys:: Any :: new_with_validate ( "refsNamespace" , & Gitoxide :: CORE , super :: validate:: RefsNamespace )
@@ -134,6 +143,7 @@ mod subsections {
134
143
& Self :: USE_STDEV ,
135
144
& Self :: SHALLOW_FILE ,
136
145
& Self :: FILTER_PROCESS_DELAY ,
146
+ & Self :: EXTERNAL_COMMAND_STDERR ,
137
147
& Self :: REFS_NAMESPACE ,
138
148
]
139
149
}
@@ -410,7 +420,7 @@ mod subsections {
410
420
pub const CACHE_LIMIT : keys:: UnsignedInteger =
411
421
keys:: UnsignedInteger :: new_unsigned_integer ( "cacheLimit" , & Gitoxide :: OBJECTS )
412
422
. with_note ( "If unset or 0, there is no object cache" )
413
- . with_environment_override ( "GITOXIDE_OBJECT_CACHE_MEMORY " ) ;
423
+ . with_environment_override ( "GIX_OBJECT_CACHE_MEMORY " ) ;
414
424
/// The `gitoxide.objects.noReplace` key.
415
425
pub const NO_REPLACE : keys:: Boolean = keys:: Boolean :: new_boolean ( "noReplace" , & Gitoxide :: OBJECTS ) ;
416
426
/// The `gitoxide.objects.replaceRefBase` key.
@@ -467,6 +477,13 @@ mod subsections {
467
477
pub const TERMINAL_PROMPT : keys:: Boolean = keys:: Boolean :: new_boolean ( "terminalPrompt" , & Gitoxide :: CREDENTIALS )
468
478
. with_note ( "This is a custom addition to provide an alternative to the respective environment variable." )
469
479
. with_environment_override ( "GIT_TERMINAL_PROMPT" ) ;
480
+
481
+ /// The `gitoxide.credentials.helperStderr` key to control what happens with the credential helpers `stderr`.
482
+ ///
483
+ /// If `true`, the default, `stderr` of credential helper programs will be inherited, just like with `git`.
484
+ /// If `false`, will be suppressed completely.
485
+ pub const HELPER_STDERR : keys:: Boolean = keys:: Boolean :: new_boolean ( "helperStderr" , & Gitoxide :: CREDENTIALS )
486
+ . with_environment_override ( "GIX_CREDENTIALS_HELPER_STDERR" ) ;
470
487
}
471
488
472
489
impl Section for Credentials {
@@ -475,7 +492,7 @@ mod subsections {
475
492
}
476
493
477
494
fn keys ( & self ) -> & [ & dyn Key ] {
478
- & [ & Self :: TERMINAL_PROMPT ]
495
+ & [ & Self :: TERMINAL_PROMPT , & Self :: HELPER_STDERR ]
479
496
}
480
497
481
498
fn parent ( & self ) -> Option < & dyn Section > {
0 commit comments