Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: gclient.py

Issue 440273002: Reland: Add --no-history option to fetch and gclient for shallow clones. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: ensure_value -> hasattr Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fetch.py ('k') | gclient_scm.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
diff --git a/gclient.py b/gclient.py
index b60884a0c2742bd55b43f01ddc5e5380af216bff..a297fba96c953ff5bdb60d7b67fcab9537bd2492 100755
--- a/gclient.py
+++ b/gclient.py
@@ -1808,6 +1808,9 @@ def CMDsync(parser, args):
parser.add_option('--output-json',
help='Output a json document to this path containing '
'summary information about the sync.')
+ parser.add_option('--no-history', action='store_true',
+ help='GIT ONLY - Reduces the size/time of the checkout at '
+ 'the cost of no history. Requires Git 1.9+')
parser.add_option('--shallow', action='store_true',
help='GIT ONLY - Do a shallow clone into the cache dir. '
'Requires Git 1.9+')
« no previous file with comments | « fetch.py ('k') | gclient_scm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698