eac_git 0.4.2 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77fe6ad59bdd1e4504f9bbd8bbb0765ecf323c1ef1530fda11216d63da603188
4
- data.tar.gz: ccb14f3f36efc68ad252aa6196050568576d87275ea1ef5296a092a4ee665388
3
+ metadata.gz: 4e93bc1263137fa2c49da54b4d9e126e66d18a366f3905600123aa29a7d1433b
4
+ data.tar.gz: e3b1255fcb3afbb74564e8b5e6518066d45c5c4f95a980a302fae55db5e07e4a
5
5
  SHA512:
6
- metadata.gz: 6ad009d9eb2c5a7b4d1910a2ed7b4350c1a994a4701b2c6dd5d03d6a8090b3ce09e84a7c0df3d0302979050beac8660439acd9c46417180a37e3cb60a4e2b959
7
- data.tar.gz: 586d73467f0d86ab8cb1d853b37a81255b8c176f639fa69245633a4ac1c269c52c26dde47bd7272b97a65e4da7e41a75d1366e77ba2cd7d9958c655a51dc909d
6
+ metadata.gz: c0093f9f61cca73f4335c53c0e1c454ecb13e35a133d20f575de5c671da4687cd7d0722cfac8d6a5f8507da6dec1a5dd83063fcbd0d18b94bb27044d5cfa9d06
7
+ data.tar.gz: b7dad37d8394f54b5077fa34933a54a6319275f81544b9c097272a8758261d147a42e04812861f6cfdddebc6778b50a3d04d6e6de996be48234e0bbeb553934b
@@ -20,6 +20,10 @@ module EacGit
20
20
  r
21
21
  end
22
22
 
23
+ def tar_uncached
24
+ env.executable('tar', '--version')
25
+ end
26
+
23
27
  module GitCommandExtensions
24
28
  def command(*args)
25
29
  super(*args).envvar('PATH', path_with_git_subrepo)
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module EacGit
6
+ class Local
7
+ class Commit
8
+ module Archive
9
+ # @return [EacRubyUtils::Envs::Command]
10
+ def archive_to_dir(path)
11
+ path = path.to_pathname
12
+ repo.command('archive', '--format=tar', hash).pipe(
13
+ ::EacGit::Executables.tar.command('-xC', path)
14
+ )
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EacGit
4
- VERSION = '0.4.2'
4
+ VERSION = '0.5.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eac_git
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Put here the authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-06 00:00:00.000000000 Z
11
+ date: 2021-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_ruby_utils
@@ -82,6 +82,7 @@ files:
82
82
  - lib/eac_git/executables.rb
83
83
  - lib/eac_git/local.rb
84
84
  - lib/eac_git/local/commit.rb
85
+ - lib/eac_git/local/commit/archive.rb
85
86
  - lib/eac_git/local/commit/changed_file.rb
86
87
  - lib/eac_git/local/commit/diff_tree_line.rb
87
88
  - lib/eac_git/local/dirty_files.rb