Lines Matching refs:root
24 backslashes. All directories should be relative to the source root and all
230 """Returns the git checkout root or None."""
231 root = capture(['git', 'rev-parse', '--show-toplevel'], dir_path).strip()
232 if root:
233 return root
321 def check_files(root, files):
322 gen = (check_file(root, f) for f in files if not is_ignored(f))
400 root = get_git_root(dir_path or cwd)
401 if root:
403 print('Found git repository at %s' % root)
404 return ApiGit(dir_path or root, bare)
413 usage = """Usage: python %prog [--root <root>] [tocheck]
414 tocheck Specifies the directory, relative to root, to check. This defaults
419 python %prog --root /path/to/source chrome"""
423 '--root',
424 help='Specifies the repository root. This defaults '
425 'to the checkout repository root')
446 if options.root:
447 options.root = os.path.abspath(options.root)
453 errors = check_files(options.root, options.files)
455 api = get_scm(options.root, options.bare)