Lines Matching defs:git
334 Run this command in a git repository to output a formatted changelog
343 - in git configuration: ``git config gitchangelog.rc-path``
344 - as '.%(exname)s.rc' in the root of the current git repository
858 ## git information access
868 def git(self):
870 return self._repos.git
896 r"""Represent a Git Commit and expose through its attribute many information
905 >>> repos.git = Mock("gitRepos.git")
906 >>> repos.git.log.mock_returns_func = \
920 >>> repos.git.rev_list.mock_returns = "123456"
929 Called gitRepos.git.log(...'HEAD'...)
934 Notice that on the second call, there's no need to call again git log as
951 Called gitRepos.git.log(...'HEAD'...)
968 Called gitRepos.git.log(...'HEAD'...)
987 Called gitRepos.git.log(...'HEAD'...)
1017 ret = self.git.log(
1088 self.git.rev_parse(["%s^{tag}" % self.identifier, "--"])
1101 tagger_date_utc = self.git.for_each_ref(
1117 self.git.merge_base(value.sha1, is_ancestor=self.sha1)
1153 """Interface to config values of git
1166 >>> repos.git.config.mock_returns = "bar"
1168 Called gitRepos.git.config('foo')
1171 Called gitRepos.git.config('foo')
1174 Called gitRepos.git.config('foo')
1177 Called gitRepos.git.config('foo.wiz')
1181 That's because in git config files, you can have a value attached to
1187 Called gitRepos.git.config('foo.wiz')
1195 >>> del repos.git.config.mock_returns
1196 >>> repos.git.config.mock_raises = ShellError('Key not found',
1200 Called gitRepos.git.config('foo')
1214 Called gitRepos.git.config('foo')
1218 Called gitRepos.git.config('foo')
1228 res = self.git.config(label)
1231 raise AttributeError("key %r is not found in git config." % label)
1258 "git",
1278 "git",
1292 ## Saving this original path to ensure all future git commands
1296 ## verify ``git`` command is accessible:
1298 self._git_version = self.git.version()
1303 "Required ``git`` command not found or broken in $PATH. "
1304 "(calling ``git version`` failed.)"
1307 ## verify that we are in a git repository
1309 self.git.remote()
1314 "Not in a git repository. (calling ``git remote`` failed.)"
1317 self.bare = self.git.rev_parse(is_bare_repository=True) == "true"
1318 self.toplevel = None if self.bare else self.git.rev_parse(show_toplevel=True)
1319 self.gitdir = normpath(self.git.rev_parse(git_dir=True), cwd=self._orig_path)
1329 wrap("git init .")
1332 self.git.config("user.name", user)
1334 self.git.config("user.email", email)
1341 def git(self):
1356 tags = self.git.tag(contains=contains).split("\n")
1358 tags = self.git.tag().split("\n")
1360 ## ``git tags --sort -v:refname`` in git version >2.0.
1362 ## git version <2.0
1377 """Reverse chronological list of git repository's commits
1391 "git log --stdin -z --topo-order --pretty=format:%s %s --"
1447 "Error parsing git config: %s."
1719 :param revlist: list of strings that git log understands as revlist
1726 :param log_encoding: the encoding used in git logs
1740 for rev in repository.git.rev_parse(
1755 revs = repository.git.rev_list(*revlist).split("\n") if revlist else []
2027 repository.git.rev_parse([rev, "--rev_only", "--"])
2048 "Error parsing git config: %s."
2052 ## Final defaults coming from git defaults
2177 "Error parsing git config: %s."
2208 ## of git repository