class Grit::Blob
Public Instance Methods
is_symlink()
click to toggle source
# File lib/grit_adapter/git_layer_grit.rb, line 403 def is_symlink self.mode == 0120000 end
symlink_target(base_path = nil)
click to toggle source
# File lib/grit_adapter/git_layer_grit.rb, line 407 def symlink_target(base_path = nil) target = self.data new_path = File.expand_path(File.join('..', target), base_path) if File.file? new_path return new_path end end