git-status-tree 3.1.0 → 3.2.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 +4 -4
- data/VERSION +1 -0
- data/bin/git-status-tree +7 -1
- data/bin/git_add_alias_tree +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8090f4d4d90afb6b0fedbb5ca793aac7badc80bac59f30c580cc89804822124
|
4
|
+
data.tar.gz: 505b37d46f5ad80c3cad0deb34c67bc8deaf70e188ab90b8023c74f92fee9636
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 909be6e6800f62f52803e865426b276511f9e17b252dcae4c0d2326e9ecc752e5f05f9c53a3e7b4bf61debc0dd3eaa06e59def4014ac55e6f5edca498839b8fb
|
7
|
+
data.tar.gz: ecf289d4983dd92adac996462ed60cd8e31053c53475690df3908633fd5a430ce6baf1e636362807e36711c86aef0795c04bf7793d69b91a0bfcd1f7c39b8a0d
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.2.0
|
data/bin/git-status-tree
CHANGED
@@ -5,9 +5,15 @@ require 'optparse'
|
|
5
5
|
require File.join File.dirname(__FILE__), '../src/git_status_tree'
|
6
6
|
require File.join File.dirname(__FILE__), '../lib/version'
|
7
7
|
|
8
|
+
options = {}
|
9
|
+
|
8
10
|
parser = OptionParser.new do |opts|
|
9
11
|
opts.banner = 'Usage: git-status-tree [options]'
|
10
12
|
|
13
|
+
opts.on('-i', '--indent INDENT', Integer, 'Set indentation (2-10 spaces)') do |indent|
|
14
|
+
options[:indent] = indent
|
15
|
+
end
|
16
|
+
|
11
17
|
opts.on('-v', '--version', 'Show version') do
|
12
18
|
puts "git-status-tree #{GitStatusTree::VERSION}"
|
13
19
|
exit 0
|
@@ -27,4 +33,4 @@ rescue OptionParser::InvalidOption => e
|
|
27
33
|
exit 1
|
28
34
|
end
|
29
35
|
|
30
|
-
puts GitStatusTree.new
|
36
|
+
puts GitStatusTree.new(options)
|
data/bin/git_add_alias_tree
CHANGED
@@ -5,7 +5,7 @@ BIN_DIR=`pwd`
|
|
5
5
|
popd > /dev/null
|
6
6
|
|
7
7
|
git config --global status-tree.indent 4
|
8
|
-
git config --global alias.tree "!sh -c \"$BIN_DIR/git-status-tree\""
|
8
|
+
git config --global alias.tree "!sh -c \"$BIN_DIR/git-status-tree \\\"\\\$@\\\"\" --"
|
9
9
|
echo '#############################'
|
10
10
|
echo '# "git tree" has been added #'
|
11
11
|
echo '# Run: git tree #'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-status-tree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wolfgang Teuber
|
@@ -18,6 +18,7 @@ extensions:
|
|
18
18
|
- ext/git_tree/extconf.rb
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
|
+
- VERSION
|
21
22
|
- bin/git-status-tree
|
22
23
|
- bin/git_add_alias_tree
|
23
24
|
- bin/git_remove_alias_tree
|