示例#1
0
    def sha_iter(self):
        # find all files which look like an object, extract sha from there
        for root, dirs, files in os.walk(self.root_path()):
            root_base = basename(root)
            if len(root_base) != 2:
                continue

            for f in files:
                if len(f) != 38:
                    continue
                yield hex_to_bin(root_base + f)
示例#2
0
    def sha_iter(self):
        # find all files which look like an object, extract sha from there
        for root, dirs, files in os.walk(self.root_path()):
            root_base = basename(root)
            if len(root_base) != 2:
                continue

            for f in files:
                if len(f) != 38:
                    continue
                yield hex_to_bin(root_base + f)
示例#3
0
 def name(self):
     """:return: Name portion of the path, effectively being the basename"""
     return basename(self.path)
示例#4
0
文件: base.py 项目: ATG618/GitPython
	def name(self):
		""":return: Name portion of the path, effectively being the basename"""
		return basename(self.path)