class History::Entry

Attributes

dir_fn[R]

dir_fn is the path to the file relative to the feed directory git_fn is the path to the file relative to the git root path is the full path

git_fn[R]

dir_fn is the path to the file relative to the feed directory git_fn is the path to the file relative to the git root path is the full path

path[R]

dir_fn is the path to the file relative to the feed directory git_fn is the path to the file relative to the git root path is the full path

Public Class Methods

new(f, root, repository) click to toggle source
# File lib/abelard/history.rb, line 42
def initialize(f, root, repository)
  @git_fn = f

  @dir_fn = if root.empty?
              f
            else
              f[root.length+1..-1]
            end

  @path = repository.workdir + '/' + @dir_fn
end