diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2023-09-02 11:27:11 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2023-09-02 11:43:42 +0100 |
commit | 332d678a9f20c7d805cd12df309226abac759e42 (patch) | |
tree | 865505b8cf1f49bb25dc0be32aaf947dfd370e56 /dgit | |
parent | 82073545960c59404d32ee383f83d94e3dbfb4e8 (diff) |
get_source_format: Allow callers to just get the format, not options
Use wantarray to distinguish the cases.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4175,7 +4175,7 @@ sub get_source_format () { F->error and confess "$!"; close F; chomp; - return ($_, \%options); + return wantarray ? ($_, \%options) : $_; } sub madformat_wantfixup ($) { |