• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:git

8 #     http://www.apache.org/licenses/LICENSE-2.0
16 """Parse a DEPS file and git checkout all of the dependencies.
21 --with-swiftshader Checkout Swiftshader dependencies
22 --with-clspv Checkout clspv dependencies
23 --with-dxc Checkout dxc dependencies
26 GIT_EXECUTABLE: path to "git" binary; if unset, will look for one of
27 ['git', 'git.exe', 'git.bat'] in your default path.
32 GIT_SYNC_DEPS_QUIET: if set to non-empty string, suppress messages.
34 Git Config:
37 git config sync-deps.disable true
39 To re-enable sync:
41 git config --unset sync-deps.disable
56 """Find the git executable.
62 searchlist = ['git', 'git.exe', 'git.bat']
66 for git in searchlist:
68 subprocess.call([git, '--version'], stdout=devnull)
71 return git
92 def git_repository_sync_is_disabled(git, directory): argument
95 [git, 'config', 'sync-deps.disable'], cwd=directory)
101 def is_git_toplevel(git, directory): argument
102 """Return true iff the directory is the top level of a Git repository.
105 git (string) the git executable
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
128 """Checkout (and clone if needed) a Git repository.
131 git (string) the git executable
134 for passing to `git clone`.
137 passing to `git checkout`
144 Raises an exception if any calls to git fail.
151 [git, 'clone', '--quiet', repo, directory])
153 if not is_git_toplevel(git, directory):
154 # if the directory exists, but isn't a git repo, you will modify
156 sys.stdout.write('%s\n IS NOT TOP-LEVEL GIT DIRECTORY.\n' % directory)
160 if git_repository_sync_is_disabled(git, directory):
167 if 0 == subprocess.call([git, 'checkout', '--quiet', checkoutable],
169 # if this succeeds, skip slow `git fetch`.
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)
203 Raises git Exceptions.
205 git = git_executable()
206 assert git
217 # Add OS-specific dependencies
234 if not with_clspv and directory == 'third_party/clspv-llvm':
246 (git, repo, checkoutable, relative_directory, verbose))
275 if '--help' in argv or '-h' in argv:
279 if '--with-clspv' in argv:
282 if '--with-dxc' in argv:
285 if '--with-swiftshader' in argv:
291 # os.path.join(os.path.dirname(deps_file_path), 'bin', 'fetch-gn')])