* [PATCH 0/7] doc updates, fixups, and more
@ 2021-03-11 10:45 4% Eric Wong
2021-03-11 10:45 7% ` [PATCH 6/7] config: use '-f' key to store config file pathname Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2021-03-11 10:45 UTC (permalink / raw)
To: meta
Eric Wong (7):
doc: glossary: add information for dates and timestamps
searchidx: remove smsg_from_doc
lei_curl: note proposed master/client mode for curl
doc: update 1.7 release notes, tuning, TODO
imapclient: disable workaround for Mail::IMAPClient 3.43+
config: use '-f' key to store config file pathname
v2writable: fix undocumented --xapian-only
Documentation/RelNotes/v1.7.0.wip | 59 ++++++++++++++++++++++++-
Documentation/public-inbox-glossary.pod | 14 ++++++
Documentation/public-inbox-tuning.pod | 9 ++++
TODO | 16 +++----
lib/PublicInbox/Config.pm | 3 +-
lib/PublicInbox/IMAPClient.pm | 12 ++---
lib/PublicInbox/LeiCurl.pm | 2 +
lib/PublicInbox/Search.pm | 4 +-
lib/PublicInbox/SearchIdx.pm | 12 -----
lib/PublicInbox/V2Writable.pm | 2 +-
t/v2reindex.t | 5 +++
11 files changed, 105 insertions(+), 33 deletions(-)
^ permalink raw reply [relevance 4%]
* [PATCH 6/7] config: use '-f' key to store config file pathname
2021-03-11 10:45 4% [PATCH 0/7] doc updates, fixups, and more Eric Wong
@ 2021-03-11 10:45 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2021-03-11 10:45 UTC (permalink / raw)
To: meta
This fixes ->urlmatch use from lei, which already sets '-f'.
I noticed this because imap.$URL.compress was ignored in
my lei config file.
---
lib/PublicInbox/Config.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm
index a4b1756d..87a03fd3 100644
--- a/lib/PublicInbox/Config.pm
+++ b/lib/PublicInbox/Config.pm
@@ -26,6 +26,7 @@ sub new {
$self = config_fh_parse($fh, "\n", '=');
} else {
$self = git_config_dump($file);
+ $self->{'-f'} = $file;
}
bless $self, $class;
# caches
@@ -505,7 +506,7 @@ sub urlmatch {
my ($self, $key, $url) = @_;
state $urlmatch_broken; # requires git 1.8.5
return if $urlmatch_broken;
- my $file = default_file();
+ my $file = $self->{'-f'} // default_file();
my $cmd = [qw/git config -z --includes --get-urlmatch/,
"--file=$file", $key, $url ];
my $fh = popen_rd($cmd);
^ permalink raw reply related [relevance 7%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-03-11 10:45 4% [PATCH 0/7] doc updates, fixups, and more Eric Wong
2021-03-11 10:45 7% ` [PATCH 6/7] config: use '-f' key to store config file pathname Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).