Lines Matching refs:git
27 command = ('git ls-remote '
28 'https://chromium.googlesource.com/chromiumos/manifest.git')
317 """Return True if git repository has staged changes."""
318 command = 'cd {0} && git diff --quiet --cached --exit-code HEAD'.format(
326 """Return True if git repository has un-staged changes."""
327 command = 'cd {0} && git diff --quiet --exit-code HEAD'.format(git_dir)
334 """Return True if git repository has un-tracked changes."""
336 '$(git ls-files --exclude-standard --others)').format(git_dir)
343 """Return githash for the symbolic git commit.
346 "cros/gcc.gnu.org/branches/gcc/gcc-4_8-mobile, this function returns the git
350 git_dir: a git working tree.
351 commit_symbolic_name: a symbolic name for a particular git commit.
354 The git hash for the symbolic name or None if fails.
357 command = ('cd {0} && git log -n 1 --pretty="format:%H" {1}').format(
368 """Test if git tree has no local changes.
371 git_dir: git tree directory.
374 True if git dir is clean.
377 logger.GetLogger().LogWarning('Git tree has staged changes.')
380 logger.GetLogger().LogWarning('Git tree has unstaged changes.')
383 logger.GetLogger().LogWarning('Git tree has un-tracked changes.')
392 git_dir: git tree directory.
399 command = 'cd {0} && git diff --name-only'.format(git_dir)
476 from lib import git
478 manifest = git.ManifestCheckout(chromeos_root)