We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1987b50 commit cf01e25Copy full SHA for cf01e25
lib/git/base.rb
@@ -426,8 +426,8 @@ def update_ref(branch, commit)
426
end
427
428
429
- def ls_files
430
- self.lib.ls_files
+ def ls_files(location=nil)
+ self.lib.ls_files(location)
431
432
433
def with_working(work_dir) # :yields: the Git::WorkingDirectory
lib/git/lib.rb
@@ -293,9 +293,9 @@ def diff_index(treeish)
293
hsh
294
295
296
297
hsh = {}
298
- command_lines('ls-files', '--stage').each do |line|
+ command_lines('ls-files', ['--stage', location]).each do |line|
299
(info, file) = line.split("\t")
300
(mode, sha, stage) = info.split
301
file = eval(file) if file =~ /^\".*\"$/ # This takes care of quoted strings returned from git
0 commit comments