git-fyncy 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/git-fyncy.rb +2 -8
- data/lib/git-fyncy/version.rb +1 -1
- metadata +1 -1
data/lib/git-fyncy.rb
CHANGED
@@ -6,8 +6,6 @@ module GitFyncy
|
|
6
6
|
path[-1] == '/' ? path : path + '/'
|
7
7
|
end
|
8
8
|
|
9
|
-
RELATIVE_PATH = slashify `pwd`.rstrip
|
10
|
-
|
11
9
|
class Remote
|
12
10
|
def initialize(remote, path)
|
13
11
|
@remote = remote
|
@@ -31,16 +29,12 @@ module GitFyncy
|
|
31
29
|
end
|
32
30
|
|
33
31
|
def self.relative_path(path)
|
34
|
-
path.slice!
|
32
|
+
path.slice! GitFyncy.slashify(Dir.pwd)
|
35
33
|
path
|
36
34
|
end
|
37
35
|
|
38
36
|
def self.git_aware_files
|
39
|
-
`git ls-files`.split("\n")
|
40
|
-
end
|
41
|
-
|
42
|
-
def self.git_aware_of_path?(path)
|
43
|
-
self.git_aware_files.include? path
|
37
|
+
`git ls-files -cmo --exclude-standard`.split("\n")
|
44
38
|
end
|
45
39
|
|
46
40
|
def self.pexit(error)
|
data/lib/git-fyncy/version.rb
CHANGED