git 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of git might be problematic. Click here for more details.

Files changed (3) hide show
  1. data/lib/git/base.rb +2 -2
  2. data/lib/git/lib.rb +2 -2
  3. metadata +2 -2
@@ -426,8 +426,8 @@ module Git
426
426
  end
427
427
 
428
428
 
429
- def ls_files
430
- self.lib.ls_files
429
+ def ls_files(location=nil)
430
+ self.lib.ls_files(location)
431
431
  end
432
432
 
433
433
  def with_working(work_dir) # :yields: the Git::WorkingDirectory
@@ -293,9 +293,9 @@ module Git
293
293
  hsh
294
294
  end
295
295
 
296
- def ls_files
296
+ def ls_files(location=nil)
297
297
  hsh = {}
298
- command_lines('ls-files', '--stage').each do |line|
298
+ command_lines('ls-files', ['--stage', location]).each do |line|
299
299
  (info, file) = line.split("\t")
300
300
  (mode, sha, stage) = info.split
301
301
  file = eval(file) if file =~ /^\".*\"$/ # This takes care of quoted strings returned from git
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Chacon
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-01 00:00:00 -04:00
12
+ date: 2009-10-17 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15