git-stash-commit 1.0.3 → 1.0.4
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/lib/git/stash/commit/version.rb +1 -1
- data/lib/git/stash/sclib/command.rb +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 195e763eb636bfef256893dc53c9e15ceca6d092
|
4
|
+
data.tar.gz: 9c43693d836fc1ab119f095df2122e40e817027b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 815158a3541c8cded7700bc07a8ac91c07ae3a6078a90532951e4b078c0ebadb6937fd10cdc9fd3209dd4c21b592c352856d499a3fa9220ceaf1c35ff31007fc
|
7
|
+
data.tar.gz: 3c665af8c988f8bb6475a34cea2c8e27288dd56e9405922948d4197277b02fcfb4f1efb261c0d0e0fbbaa58e9d60de34da85b907eef5d7fd878a0d9a90ab0146
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# ラッパーコマンド群
|
2
2
|
|
3
|
+
require 'kconv'
|
4
|
+
|
3
5
|
$:.unshift File.dirname(__FILE__)
|
4
6
|
require 'define.rb'
|
5
7
|
require 'util.rb'
|
@@ -43,11 +45,11 @@ module Cmd
|
|
43
45
|
`git rev-parse --short #{target}`.chomp
|
44
46
|
end
|
45
47
|
def title
|
46
|
-
`git log -1 --pretty=format:\"%s\"`
|
48
|
+
NKF.nkf('-w', `git log -1 --pretty=format:\"%s\"`)
|
47
49
|
end
|
48
50
|
def branchName
|
49
51
|
`git branch`.each_line do |line|
|
50
|
-
return line[1..-1].strip
|
52
|
+
return NKF.nkf('-w', line[1..-1].strip) if line[0] == '*'
|
51
53
|
end
|
52
54
|
end
|
53
55
|
|