git-crecord 1.0.6 → 1.0.7
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 +2 -1
- data/lib/git_crecord.rb +8 -4
- data/lib/git_crecord/version.rb +1 -1
- data/test/system-test.sh +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ce045e7d03cb28cc18e0b0f53a94d899ddda5b5
|
4
|
+
data.tar.gz: 3e422f98bf301d49f345e93c1918c13939890e82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9f8895676800845ccf3871802bd580abeef8daa57703656bab39121047543259b51e86ec7b27bf1ef78e8dede3f1a13ae6c35c7c48525e6b63a551e366c2f30
|
7
|
+
data.tar.gz: 0a4e493f984e0ee4cf2de592a60a3bc11b3690b472cd39d161eb8ba54474f2b4376064b43988b7ced2980558b758a18b674e91795f4859761ab99f9262a8e192
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# git-crecord
|
2
2
|
|
3
|
-
|
3
|
+
Inspired by [crecord mercurial extension](https://bitbucket.org/edgimar/crecord/wiki/Home), git-crecord is an easy way to commit/stage git changes partially.
|
4
4
|
|
5
5
|

|
6
6
|
|
@@ -14,6 +14,7 @@ $ gem install git-crecord
|
|
14
14
|
|
15
15
|
```shell
|
16
16
|
$ git crecord
|
17
|
+
$ git crecord --untracked-files # show untracked files
|
17
18
|
```
|
18
19
|
|
19
20
|
Key-bindings:
|
data/lib/git_crecord.rb
CHANGED
@@ -13,10 +13,14 @@ module GitCrecord
|
|
13
13
|
help
|
14
14
|
true
|
15
15
|
else
|
16
|
-
run(with_untracked_files:
|
16
|
+
run(with_untracked_files: untracked_files?(argv))
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
+
def self.untracked_files?(argv)
|
21
|
+
argv.include?('--untracked-files') || argv.include?('-u')
|
22
|
+
end
|
23
|
+
|
20
24
|
def self.run(with_untracked_files: false)
|
21
25
|
toplevel_dir = Git.toplevel_dir
|
22
26
|
return false if toplevel_dir.empty?
|
@@ -34,9 +38,9 @@ module GitCrecord
|
|
34
38
|
puts <<EOS
|
35
39
|
usage: git crecord [<options>]
|
36
40
|
|
37
|
-
--
|
38
|
-
--version
|
39
|
-
-h
|
41
|
+
-u, --untracked-files -- show untracked files
|
42
|
+
--version -- show version information
|
43
|
+
-h -- this help message
|
40
44
|
|
41
45
|
in-program commands:
|
42
46
|
#{UI::HelpWindow::CONTENT.gsub(/^/, ' ')}
|
data/lib/git_crecord/version.rb
CHANGED
data/test/system-test.sh
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-crecord
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maik Brendler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|