Lines Matching refs:branch
85 def GuessUpstream(git_dir, branch): argument
101 pipe = [LogCmd(branch, git_dir=git_dir, oneline=True, count=100)]
105 return None, "Branch '%s' not found" % branch
113 return None, "Cannot find a suitable upstream for branch '%s'" % branch
115 def GetUpstream(git_dir, branch): argument
129 'branch.%s.remote' % branch)
131 'branch.%s.merge' % branch)
133 upstream, msg = GuessUpstream(git_dir, branch)
143 "'%s' remote='%s', merge='%s'" % (branch, remote, merge))
146 def GetRangeInBranch(git_dir, branch, include_upstream=False): argument
156 upstream, msg = GetUpstream(git_dir, branch)
159 rstr = '%s%s..%s' % (upstream, '~' if include_upstream else '', branch)
180 def CountCommitsInBranch(git_dir, branch, include_upstream=False): argument
190 range_expr, msg = GetRangeInBranch(git_dir, branch, include_upstream)