lib/gitwakatime/models/commited_file.rb
def find_dependent_commit(name, i = 1)
      commits = load_dependent_commits(name)
      loop do
        commit = commits[i]

        if commit && allowed_commit(commit)
          set dependent_sha: commit.sha, dependent_date: commit.date
          check_and_correct_split_tree(commit)
        end

        i += 1
        break if !dependent_sha.nil? || commit.nil?
      end
    end
# Call git log for path, loop through till we find a valid commit or run
# out of commits to check
Call git log for path, loop through till we find a valid commit or run
out of commits to check
Call git log for path loop through till we find a valid commit or run out of commits to check
def find_dependent_commit(name, i = 1)
      commits = load_dependent_commits(name)
      loop do
        commit = commits[i]
        if commit && allowed_commit(commit)
          set dependent_sha: commit.sha, dependent_date: commit.date
          check_and_correct_split_tree(commit)
        end
        i += 1
        break if !dependent_sha.nil? || commit.nil?
      end
    end
def find_dependent_commit ( name , i = 1 ) commits = load_dependent_commits ( name ) loop do commit = commits [ i ] if commit && allowed_commit ( commit ) set dependent_sha : commit . sha , dependent_date : commit . date check_and_correct_split_tree ( commit ) end i += 1 break if ! dependent_sha . nil? || commit . nil? end end
Call git log for path, loop through till we find a valid commit or run
out of commits to check
Call git log for path loop through till we find a valid commit or run out of commits to check
name
i