Skip to content

Commit

Permalink
Add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
douglaslassance committed Oct 10, 2024
1 parent 2de2802 commit 259b93e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gitalong/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,10 @@ def _accumulate_local_only_commits(self, start: git.Commit, local_commits: list)
# TODO: Maybe there is a way to get this information using pure Python.
if self._managed_repository.git.branch("--remotes", "--contains", start.hexsha):
return
# TODO: This is an expensive thing to call inividualy.
commit_dict = self.get_commit_dict(start)
commit_dict.update(self.context_dict)
# TODO: This is an expensive thing to call inividualy.
commit_dict["branches"] = {"local": self.get_commit_branches(start.hexsha)}
# TODO: Maybe we should compare the SHA here.
if commit_dict not in local_commits:
Expand Down

0 comments on commit 259b93e

Please sign in to comment.