diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-07-31 17:45:18 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-09-05 13:41:47 +0100 |
commit | 12ece166a931d546fc6d152f253f7b78e7478dc7 (patch) | |
tree | 156b4674d05d496c0b5f41a8ae6c25577c659c3a /dgit | |
parent | 11f333c91765e0852f28807463d9302bad75d262 (diff) |
Split tags: Preparation: Break out access_cfg_tagformats
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1134,13 +1134,17 @@ sub archive_query_dummycat ($$) { #---------- tag format handling ---------- +sub access_cfg_tagformats () { + split /\,/, access_cfg('dgit-tag-format'); +} + sub select_tagformat () { # sets $tagformatfn return if $tagformatfn && !$tagformat_want; die 'bug' if $tagformatfn && $tagformat_want; # ... $tagformat_want assigned after previous select_tagformat - my (@supported) = split /\,/, access_cfg('dgit-tag-format'); + my (@supported) = access_cfg_tagformats(); printdebug "select_tagformat supported @supported\n"; $tagformat_want //= [ $supported[0], "distro access configuration", 0 ]; |