Closed zergov closed 1 week ago
Pass the --reverse flag to git log inside GitRepository.
--reverse
git log
This means we now index commits in chronological order. Which means the latest commit is technically always the highest id.
This means:
Repository.find(1).commits.last
Repository.find(1).commits.first
Pass the
--reverse
flag togit log
inside GitRepository.This means we now index commits in chronological order. Which means the latest commit is technically always the highest id.
This means:
Repository.find(1).commits.last
--> always returns the last commitRepository.find(1).commits.first
--> always returns the first commit