# File lib/grit/git-ruby/internal/pack.rb, line 79 def with_packfile begin packfile = File.open(@name, 'rb') rescue Errno::ENOENT # file went away. bail out without yielding. return end yield packfile ensure packfile.close if packfile end