git-index 1.0.1 → 1.0.2
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 +4 -4
- data/README.md +35 -1
- data/git-index.gemspec +10 -2
- data/lib/gitindex/version.rb +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa76edc27605478d27c8787073cc8a28b297d96194ba765565e754fc7872ce71
|
4
|
+
data.tar.gz: e77d1ee9cf749fbf91b0bdddc06b72b2210c3b7e5065de028ce0c00a682904dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7917da2cda28a6ef047a79f692ebc6b1a4378d08d31bd4fa3978ce2d797042ea1ce0f9dcc593196798c989002444d80e28f9179270fd93208fa9b851f2d1debc
|
7
|
+
data.tar.gz: d7f421d28ff142c9bdf25db1ae141a3c2477c7638b0f5eeb93a4a48bfc253964a1938cd13217b93a2988b68b81bf9e24cb363e448b0ebfe35b9f63a210e554bb
|
data/README.md
CHANGED
@@ -1,2 +1,36 @@
|
|
1
1
|
# git-index
|
2
|
-
|
2
|
+
|
3
|
+
This tool takes a list of paths and checks them for git repositories. It
|
4
|
+
writes to a sqlite database a table of repositories found, indexed by both
|
5
|
+
the first and the second commit hashes on the repository. The rationale is
|
6
|
+
that these first couple of commits are unlikely to ever change as the
|
7
|
+
result of a rebase, and thus make a fairly reliable fingerprint of the
|
8
|
+
identity of the repository. The motivation behind this tool is for use with
|
9
|
+
Serf and the `serf-hander` gem to power a slick, simple deployment manger
|
10
|
+
utiizing a git repo and deploy hooks at the underlying source and trigger.
|
11
|
+
|
12
|
+
## Usage
|
13
|
+
|
14
|
+
```
|
15
|
+
git-index /gluster/htdocs/site.doc.com
|
16
|
+
```
|
17
|
+
|
18
|
+
Add the given directory to the index.
|
19
|
+
|
20
|
+
```
|
21
|
+
git-index -l
|
22
|
+
```
|
23
|
+
|
24
|
+
List all of the indexed hashes and their directories
|
25
|
+
|
26
|
+
```
|
27
|
+
git-index -q d950c4bbe672fe02e36009d71d88ef4ab754fa91
|
28
|
+
```
|
29
|
+
|
30
|
+
Perform a lookup in the index to see if that has code matches a known repository, and returns the matches, one per line.
|
31
|
+
|
32
|
+
```
|
33
|
+
git-index -h
|
34
|
+
```
|
35
|
+
|
36
|
+
See all options.
|
data/git-index.gemspec
CHANGED
@@ -16,10 +16,18 @@ Gem::Specification.new do |spec|
|
|
16
16
|
the first and the second commit hashes on the repository. The rationale is
|
17
17
|
that these first couple of commits are unlikely to ever change as the
|
18
18
|
result of a rebase, and thus make a fairly reliable fingerprint of the
|
19
|
-
identity of the repository.
|
19
|
+
identity of the repository. The motivation behind this tool is for use with
|
20
|
+
Serf and the serf-hander gem to power a slick, simple deployment manger
|
21
|
+
utiizing a git repo and deploy hooks at the underlying source and trigger.
|
20
22
|
EDESC
|
21
|
-
spec.homepage = ""
|
23
|
+
spec.homepage = "https://github.com/wyhaines/git-index"
|
22
24
|
spec.license = "MIT"
|
25
|
+
spec.metadata = {
|
26
|
+
"bug_tracker_uri" => "https://github.com/wyhaines/git-index/issues",
|
27
|
+
"documentation_uri" => "https://github.com/wyhaines/git-index",
|
28
|
+
"homepage_uri" => "https://github.com/wyhaines/git-index",
|
29
|
+
"source_code_uri" => "https://github.com/wyhaines/git-index",
|
30
|
+
}
|
23
31
|
|
24
32
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
25
33
|
f.match(%r{^(test|spec|features)/})
|
data/lib/gitindex/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-index
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirk Haines
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-01-
|
11
|
+
date: 2018-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,7 +72,9 @@ description: |
|
|
72
72
|
the first and the second commit hashes on the repository. The rationale is
|
73
73
|
that these first couple of commits are unlikely to ever change as the
|
74
74
|
result of a rebase, and thus make a fairly reliable fingerprint of the
|
75
|
-
identity of the repository.
|
75
|
+
identity of the repository. The motivation behind this tool is for use with
|
76
|
+
Serf and the serf-hander gem to power a slick, simple deployment manger
|
77
|
+
utiizing a git repo and deploy hooks at the underlying source and trigger.
|
76
78
|
email:
|
77
79
|
- wyhaines@gmail.com
|
78
80
|
executables:
|
@@ -88,10 +90,14 @@ files:
|
|
88
90
|
- lib/gitindex.rb
|
89
91
|
- lib/gitindex/config.rb
|
90
92
|
- lib/gitindex/version.rb
|
91
|
-
homepage:
|
93
|
+
homepage: https://github.com/wyhaines/git-index
|
92
94
|
licenses:
|
93
95
|
- MIT
|
94
|
-
metadata:
|
96
|
+
metadata:
|
97
|
+
bug_tracker_uri: https://github.com/wyhaines/git-index/issues
|
98
|
+
documentation_uri: https://github.com/wyhaines/git-index
|
99
|
+
homepage_uri: https://github.com/wyhaines/git-index
|
100
|
+
source_code_uri: https://github.com/wyhaines/git-index
|
95
101
|
post_install_message:
|
96
102
|
rdoc_options: []
|
97
103
|
require_paths:
|