Lines Matching +full:- +full:- +full:disable +full:- +full:verbose
8 # http://www.apache.org/licenses/LICENSE-2.0
21 --with-swiftshader Checkout Swiftshader dependencies
22 --with-clspv Checkout clspv dependencies
23 --with-dxc Checkout dxc dependencies
32 GIT_SYNC_DEPS_QUIET: if set to non-empty string, suppress messages.
35 To disable syncing of a single repository:
37 git config sync-deps.disable true
39 To re-enable sync:
41 git config --unset sync-deps.disable
68 subprocess.call([git, '--version'], stdout=devnull)
94 disable = subprocess.check_output(
95 [git, 'config', 'sync-deps.disable'], cwd=directory)
96 return disable.lower().strip() in ['true', '1', 'yes', 'on']
112 [git, 'rev-parse', '--show-toplevel'], cwd=directory).strip()
120 return s if len(s) <= length else '...' + s[-(length - 3):]
124 sys.stdout.write('%-*s @ %s\n' % (dlen, directory, checkoutable))
127 def git_checkout_to_directory(git, repo, checkoutable, directory, verbose): argument
142 verbose (boolean)
146 if verbose:
151 [git, 'clone', '--quiet', repo, directory])
156 sys.stdout.write('%s\n IS NOT TOP-LEVEL GIT DIRECTORY.\n' % directory)
167 if 0 == subprocess.call([git, 'checkout', '--quiet', checkoutable],
173 # If origin already points to repo, this is a quick no-op.
175 [git, 'remote', 'set-url', 'origin', repo], cwd=directory)
177 subprocess.check_call([git, 'fetch', '--quiet'], cwd=directory)
179 subprocess.check_call([git, 'checkout', '--quiet', checkoutable], cwd=directory)
193 def git_sync_deps(deps_file_path, command_line_os_requests, verbose): argument
217 # Add OS-specific dependencies
234 if not with_clspv and directory == 'third_party/clspv-llvm':
240 if not with_dxc and directory == 'third_party/DirectX-Headers':
249 (git, repo, checkoutable, relative_directory, verbose))
255 git_sync_deps(recursive_path, command_line_os_requests, verbose)
276 verbose = not bool(os.environ.get('GIT_SYNC_DEPS_QUIET', False))
278 if '--help' in argv or '-h' in argv:
282 if '--with-clspv' in argv:
285 if '--with-dxc' in argv:
288 if '--with-swiftshader' in argv:
291 git_sync_deps(deps_file_path, argv, verbose)
294 # os.path.join(os.path.dirname(deps_file_path), 'bin', 'fetch-gn')])