def blob(self, sha, path, tree=None, commit=None, raw=False):
        if tree and tree == 'HEAD^{tree}':
            tree = None

        l = [self.url, 'a=blob', 'h=%s' % sha]
        if path:
            l.append('f=%s' % path)

        url = ';'.join(l)

        if raw:
            url = url.replace('a=blob', 'a=blob_plain', 1)

        return url
dataset/ETHPy150Open gvalkov/git-link/gitlink/repobrowsers.py/GitwebBrowser.blob/original