diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-06-29 00:25:14 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-06-29 00:52:53 +0100 |
commit | bc6745cb68686962dcbb5549cc276cf8a36e39e4 (patch) | |
tree | 7b13181d8b2f99515772ed5584b559afe680e156 /Debian | |
parent | 5bed21be705bbfc578b623b9543344e4d8efb4a9 (diff) |
Dgit.pm: Move hash_commit from dgit
No functional change other than to no longer honour @git.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'Debian')
-rw-r--r-- | Debian/Dgit.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm index e9a85f7..22cef21 100644 --- a/Debian/Dgit.pm +++ b/Debian/Dgit.pm @@ -62,7 +62,7 @@ BEGIN { git_reflog_action_msg git_update_ref_cmd rm_subdir_cached read_tree_subdir read_tree_debian read_tree_upstream - make_commit hash_commit_text + make_commit hash_commit hash_commit_text reflog_cache_insert reflog_cache_lookup $package_re $component_re $deliberately_re $distro_re $versiontag_re $series_filename_re @@ -840,6 +840,11 @@ sub make_commit ($$) { return cmdoutput @cmd; } +sub hash_commit ($) { + my ($file) = @_; + return cmdoutput qw(git hash-object -w -t commit), $file; +} + sub hash_commit_text ($) { my ($text) = @_; my ($out, $in); |