Lines Matching refs:branch
84 def GuessUpstream(git_dir, branch): argument
100 pipe = [LogCmd(branch, git_dir=git_dir, oneline=True, count=100)]
104 return None, "Branch '%s' not found" % branch
112 return None, "Cannot find a suitable upstream for branch '%s'" % branch
114 def GetUpstream(git_dir, branch): argument
128 'branch.%s.remote' % branch)
130 'branch.%s.merge' % branch)
132 upstream, msg = GuessUpstream(git_dir, branch)
142 "'%s' remote='%s', merge='%s'" % (branch, remote, merge))
145 def GetRangeInBranch(git_dir, branch, include_upstream=False): argument
155 upstream, msg = GetUpstream(git_dir, branch)
158 rstr = '%s%s..%s' % (upstream, '~' if include_upstream else '', branch)
179 def CountCommitsInBranch(git_dir, branch, include_upstream=False): argument
189 range_expr, msg = GetRangeInBranch(git_dir, branch, include_upstream)