comment for last-commit detection logic