Did I find the right examples for you? yes no

All Samples(9)  |  Call(6)  |  Derive(0)  |  Import(3)
:return: New branch/head instance

        def mkhead(repo, path):
	""":return: New branch/head instance"""
	return git.Head(repo, git.Head.to_full_path(path))
        


src/k/r/kr-GitPython-0.3.1.1/git/objects/submodule/base.py   kr-GitPython(Download)
from git.util import RepoAliasMixin
import util
from util import (
					mkhead,
					sm_name, 
					# find  a remote which has our branch - we try to be flexible
					remote_branch = find_first_remote_branch(mrepo.remotes, self.branch_name)
					local_branch = mkhead(mrepo, self.branch_path)
 
					# have a valid branch, but no checkout - make sure we can figure
	def branch(self):
		""":return: The branch instance that we are to checkout
		:raise InvalidGitRepositoryError: if our module is not yet checked out"""
		return mkhead(self.module(), self._branch_path)
 

src/g/i/GitPython-0.3.2.RC1/git/objects/submodule/base.py   GitPython(Download)
import util
from util import (
					mkhead,
					sm_name, 
					sm_section, 
					# find  a remote which has our branch - we try to be flexible
					remote_branch = find_first_remote_branch(mrepo.remotes, self.branch_name)
					local_branch = mkhead(mrepo, self.branch_path)
 
					# have a valid branch, but no checkout - make sure we can figure
	def branch(self):
		""":return: The branch instance that we are to checkout
		:raise InvalidGitRepositoryError: if our module is not yet checked out"""
		return mkhead(self.module(), self._branch_path)
 

src/g/i/GitPython-HEAD/git/objects/submodule/base.py   GitPython(Download)
import util
from util import (
                    mkhead,
                    sm_name, 
                    sm_section, 
                    # find  a remote which has our branch - we try to be flexible
                    remote_branch = find_first_remote_branch(mrepo.remotes, self.branch_name)
                    local_branch = mkhead(mrepo, self.branch_path)
 
                    # have a valid branch, but no checkout - make sure we can figure
    def branch(self):
        """:return: The branch instance that we are to checkout
        :raise InvalidGitRepositoryError: if our module is not yet checked out"""
        return mkhead(self.module(), self._branch_path)