예제 #1
0
    def open_index(self):
        """Fail to open index for this repo, since it is bare.

        Raises:
          NoIndexPresent: Raised when no index is present
        """
        raise NoIndexPresent()
예제 #2
0
파일: repo.py 프로젝트: riverfor/dulwich
    def open_index(self):
        """Open the index for this repository.

        :raise NoIndexPresent: If no index is present
        :return: The matching `Index`
        """
        from dulwich.index import Index
        if not self.has_index():
            raise NoIndexPresent()
        return Index(self.index_path())
예제 #3
0
    def open_index(self):
        """
			this is a bare repo which doesn't have an index
			an index is used in a working repo to keep a record of changes to files,
			thus saving git having to scan all the files for changes at commit time
			I'm assuming the index is updated when running git add
			
			as this is a server, it does not have a working tree and hence does not have an index
		"""
        raise NoIndexPresent()
예제 #4
0
 def open_index(self):
     """Open the index for this repository."""
     from dulwich.index import Index
     if not self.has_index():
         raise NoIndexPresent()
     return Index(self.index_path())
예제 #5
0
파일: repo.py 프로젝트: utecht/djangogit
 def open_index(self):
     """Fail to open index for this repo, since it is bare."""
     raise NoIndexPresent()