# frozen_string_literal: true require 'eac_ruby_utils/core_ext' module EacGit class Local class Commit module Archive # @return [EacRubyUtils::Envs::Command] def archive_to_dir(path) path = path.to_pathname repo.command('archive', '--format=tar', hash).pipe( ::EacGit::Executables.tar.command('-xC', path) ) end end end end end