opal_common/git/branch_tracker.py
def pull(self) -> Tuple[bool, Commit, Commit]:
        """
        git pulls from tracked remote.

        Returns:
            pull_result (bool, Commit, Commit): a tuple consisting of:
                has_changes (bool): whether the remote had new commits on our tracked branch
                prev (Commit): the previous (before the pull) top-most commit on the tracked branch
                latest (Commit): the new top-most (latest) commit on the tracked branch
        """
        self._pull()

        if (self.prev_commit.hexsha == self.latest_commit.hexsha):
            return False, self.prev_commit, self.prev_commit
        else:
            prev = self._prev_commit
            self._save_latest_commit_as_prev_commit()
            return True, prev, self.latest_commit

        git pulls from tracked remote.

        Returns:
            pull_result (bool, Commit, Commit): a tuple consisting of:
                has_changes (bool): whether the remote had new commits on our tracked branch
                prev (Commit): the previous (before the pull) top-most commit on the tracked branch
                latest (Commit): the new top-most (latest) commit on the tracked branch
        
git pulls from tracked remote.
git pulls from tracked remote .
def pull(self) -> Tuple[bool, Commit, Commit]:
        self._pull()
        if (self.prev_commit.hexsha == self.latest_commit.hexsha):
            return False, self.prev_commit, self.prev_commit
        else:
            prev = self._prev_commit
            self._save_latest_commit_as_prev_commit()
            return True, prev, self.latest_commit
def pull ( self ) -> Tuple [ bool , Commit , Commit ] : self . _pull ( ) if ( self . prev_commit . hexsha == self . latest_commit . hexsha ) : return False , self . prev_commit , self . prev_commit else : prev = self . _prev_commit self . _save_latest_commit_as_prev_commit ( ) return True , prev , self . latest_commit
git pulls from tracked remote.
git pulls from tracked remote .
"""
        git pulls from tracked remote.

        Returns:
            pull_result (bool, Commit, Commit): a tuple consisting of:
                has_changes (bool): whether the remote had new commits on our tracked branch
                prev (Commit): the previous (before the pull) top-most commit on the tracked branch
                latest (Commit): the new top-most (latest) commit on the tracked branch
        """
pull_result (bool, Commit, Commit): a tuple consisting of:
has_changes (bool): whether the remote had new commits on our tracked branch
prev (Commit): the previous (before the pull) top-most commit on the tracked branch
latest (Commit): the new top-most (latest) commit on the tracked branch
pull_result ( bool Commit Commit ) : a tuple consisting of : has_changes ( bool ) : whether the remote had new commits on our tracked branch prev ( Commit ) : the previous ( before the pull ) top - most commit on the tracked branch latest ( Commit ) : the new top - most ( latest ) commit on the tracked branch
self