def GetSquashGerritUploads(self):
    'Return true if uploads to Gerrit should be squashed by default.'
    if (self.squash_gerrit_uploads is None):
        self.squash_gerrit_uploads = self.GetSquashGerritUploadsOverride()
        if (self.squash_gerrit_uploads is None):
            self.squash_gerrit_uploads = (not (RunGit(['config', '--bool', 'gerrit.squash-uploads'], error_ok=True).strip() == 'false'))
    return self.squash_gerrit_uploads
Return true if uploads to Gerrit should be squashed by default.
def GetSquashGerritUploads(self):
    
    if (self.squash_gerrit_uploads is None):
        self.squash_gerrit_uploads = self.GetSquashGerritUploadsOverride()
        if (self.squash_gerrit_uploads is None):
            self.squash_gerrit_uploads = (not (RunGit(['config', '--bool', 'gerrit.squash-uploads'], error_ok=True).strip() == 'false'))
    return self.squash_gerrit_uploads