We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fafbf00 commit f70dde0Copy full SHA for f70dde0
src/git_autograder/branch.py
@@ -106,9 +106,13 @@ def user_commits(self) -> List[GitAutograderCommit]:
106
return user_commits
107
108
@property
109
- def latest_commit(self) -> GitAutograderCommit:
+ def latest_user_commit(self) -> GitAutograderCommit:
110
return self.user_commits[-1]
111
112
+ @property
113
+ def latest_commit(self) -> GitAutograderCommit:
114
+ return self.commits[-1]
115
+
116
def has_non_empty_commits(self) -> bool:
117
"""Returns if a given branch has any non-empty commits."""
118
for commit in self.user_commits:
0 commit comments