git_bootstrap.py: add a switch to control client bitness

BUG=635421, 629679

Review-Url: https://codereview.chromium.org/2280973002
1 file changed
tree: 0bfd9c6816b73922834d521641c4bf06723fa5fa
  1. bootstrap/
  2. fetch_configs/
  3. git-templates/
  4. infra/
  5. man/
  6. recipe_modules/
  7. support/
  8. testing_support/
  9. tests/
  10. third_party/
  11. win_toolchain/
  12. zsh-goodies/
  13. .gitignore
  14. .style.yapf
  15. annotated_gclient.py
  16. apply_issue
  17. apply_issue.bat
  18. apply_issue.py
  19. auth.py
  20. breakpad.py
  21. buildbucket.py
  22. checkout.py
  23. cit
  24. cit.bat
  25. cit.py
  26. clang-format
  27. clang-format.bat
  28. clang_format.py
  29. codereview.settings
  30. commit_queue
  31. commit_queue.bat
  32. commit_queue.py
  33. cpplint.bat
  34. cpplint.py
  35. cpplint_chromium.py
  36. create-ntfs-junction.c
  37. create-ntfs-junction.exe
  38. dart_format.py
  39. depot-tools-auth
  40. depot-tools-auth.bat
  41. depot-tools-auth.py
  42. download_from_google_storage
  43. download_from_google_storage.bat
  44. download_from_google_storage.py
  45. fetch
  46. fetch.bat
  47. fetch.py
  48. fix_encoding.py
  49. gclient
  50. gclient-new-workdir.py
  51. gclient.bat
  52. gclient.py
  53. gclient_completion.sh
  54. gclient_scm.py
  55. gclient_utils.py
  56. gerrit_util.py
  57. git-auto-svn
  58. git-cache
  59. git-cherry-pick-upload
  60. git-cl
  61. git-crrev-parse
  62. git-crsync
  63. git-drover
  64. git-find-releases
  65. git-footers
  66. git-freeze
  67. git-gs
  68. git-hyper-blame
  69. git-map
  70. git-map-branches
  71. git-mark-merge-base
  72. git-nav-downstream
  73. git-nav-upstream
  74. git-new-branch
  75. git-number
  76. git-rebase-update
  77. git-rename-branch
  78. git-reparent-branch
  79. git-retry
  80. git-runhooks
  81. git-squash-branch
  82. git-thaw
  83. git-upstream-diff
  84. git_auto_svn.py
  85. git_cache.py
  86. git_cherry_pick_upload.py
  87. git_cl.py
  88. git_cl_completion.sh
  89. git_common.py
  90. git_dates.py
  91. git_drover.py
  92. git_find_releases.py
  93. git_footers.py
  94. git_freezer.py
  95. git_hyper_blame.py
  96. git_map.py
  97. git_map_branches.py
  98. git_mark_merge_base.py
  99. git_nav_downstream.py
  100. git_new_branch.py
  101. git_number.py
  102. git_rebase_update.py
  103. git_rename_branch.py
  104. git_reparent_branch.py
  105. git_retry.py
  106. git_squash_branch.py
  107. git_upstream_diff.py
  108. gn
  109. gn.bat
  110. gn.py
  111. gsutil.py
  112. LICENSE
  113. my_activity.py
  114. my_reviews.py
  115. ninja
  116. ninja-linux32
  117. ninja-linux64
  118. ninja-mac
  119. ninja.exe
  120. OWNERS
  121. owners.py
  122. owners_finder.py
  123. patch.py
  124. PRESUBMIT.py
  125. presubmit_canned_checks.py
  126. presubmit_support.py
  127. profile.xml
  128. pylint
  129. pylint.py
  130. pylintrc
  131. python_runner.sh
  132. README.gclient.md
  133. README.git-cl.md
  134. README.md
  135. README.testing
  136. recipes.py
  137. repo
  138. rietveld.py
  139. roll-dep
  140. roll-dep-svn
  141. roll-dep-svn.bat
  142. roll-dep.bat
  143. roll_dep.py
  144. roll_dep_svn.py
  145. scm.py
  146. setup_color.py
  147. subcommand.py
  148. subprocess2.py
  149. update_depot_tools
  150. update_depot_tools.bat
  151. upload_to_google_storage.py
  152. WATCHLISTS
  153. watchlists.py
  154. weekly
  155. wtf
README.md

depot_tools

This package contains tools for working with Chromium development. It requires python 2.7.

Tools

The most important tools are:

  • fetch: A gclient wrapper to checkout a project. Use fetch --help for more details.
  • gclient: A meta-checkout tool. Think repo or git submodules, except that it support OS-specific rules, e.g. do not checkout Windows only dependencies when checking out for Android. Use gclient help for more details and README.gclient.md.
  • git cl: A code review tool to interact with Rietveld or Gerrit. Use git cl help for more details and README.git-cl.md.
  • roll-dep: A gclient dependency management tool to submit a dep roll, updating a dependency to a newer revision.

There are a lot of git utilities included.

Updating

depot_tools updates itself automatically when running gclient tool. To disable auto update, set the environment variable DEPOT_TOOLS_UPDATE=0.

To update package manually, run update_depot_tools.bat on Windows, or ./update_depot_tools on Linux or Mac.

On Windows only, running gclient will install svn (not for long), git, python.

Contributing

To contribute change for review:

git new-branch <somename>
# Hack
git add .
git commit -a -m "Fixes goat teleporting"
# find reviewers
git cl owners
git log -- <yourfiles>

# Request a review.
git cl upload -r reviewer1@chromium.org,reviewer2@chromium.org --send-mail

# Edit change description if needed.
git cl desc

# If change is approved, flag it to be commited.
git cl set-commit

# If change needs more work.
git rebase-update
...
git cl upload -t "Fixes goat teleporter destination to be Australia"

cpplint.py

To update cpplint.py, please submit the change upstream first at https://github.com/google/styleguide/tree/gh-pages/cpplint then copy it down.