diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2023-06-12 11:48:22 +0100 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2023-06-12 11:48:22 +0100 |
commit | 10260e3f92f393164c5d5bfe56456c698114f4ea (patch) | |
tree | d47035406eb778963a8e713ee87dd0d9b7f9e28c /perl5 | |
parent | 225bb06d3db26c890b21529499e7d938d898fe5e (diff) | |
download | dotfiles-10260e3f92f393164c5d5bfe56456c698114f4ea.tar.gz |
namespace my git config keys
Diffstat (limited to 'perl5')
-rw-r--r-- | perl5/Local/MrRepo/Repo/Git/Annex.pm | 2 | ||||
-rw-r--r-- | perl5/Local/Util/Git.pm | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/perl5/Local/MrRepo/Repo/Git/Annex.pm b/perl5/Local/MrRepo/Repo/Git/Annex.pm index 9e1c2164..d3eefcdf 100644 --- a/perl5/Local/MrRepo/Repo/Git/Annex.pm +++ b/perl5/Local/MrRepo/Repo/Git/Annex.pm @@ -67,7 +67,7 @@ sub review { # 2. Check for unused files which we should be able to clean up my ($review_unused) = $self->git->config(qw(--local --get --type=bool --default true - mrrepo.review-unused)); + spwhitton.mrrepo.review-unused)); if ($review_unused eq "true") { #<<< diff --git a/perl5/Local/Util/Git.pm b/perl5/Local/Util/Git.pm index c231611b..3f7bf3e9 100644 --- a/perl5/Local/Util/Git.pm +++ b/perl5/Local/Util/Git.pm @@ -33,7 +33,7 @@ sub unpushed_tags { # allow skipping this check on a whole repo chomp(my $ignore = - `$git config --local --get --type=bool unpushed-tags.ignore`); + `$git config --local --get --type=bool spwhitton.unpushed-tags.ignore`); return () if $ignore eq 'true'; # archive/debian/foo tags are pushed only to dgit repos in split @@ -68,9 +68,10 @@ sub unpushed_tags { my %pushed_tags; foreach my $remote (@remotes) { # allow skipping remotes which don't like 'ls-remote' - chomp(my $ignore = - `$git config --local --get --type=bool remote.$remote.unpushed-tags-ignore`); - next if $ignore eq 'true'; + # TODO replace with an spwhitton.unpushed-tags.skip-remotes key ? + # chomp(my $ignore = + # `$git config --local --get --type=bool remote.$remote.unpushed-tags-ignore`); + # next if $ignore eq 'true'; # remotes without URIs are probably git-annex special remotes; skip them `$git config --local --get remote.$remote.url`; |