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

Unified Diff: gclient.py

Issue 647063: Add --reset option to gclient sync for git (Closed) Base URL: svn://chrome-svn/chrome/trunk/tools/depot_tools/
Patch Set: '' Created 10 years, 10 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 | « no previous file | gclient_scm.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gclient.py
===================================================================
--- gclient.py (revision 39412)
+++ gclient.py (working copy)
@@ -125,6 +125,7 @@
--deps PLATFORM(S) : sync deps for the given platform(s), or 'all'
--verbose : output additional diagnostics
--head : update to latest revision, instead of last good revision
+ --reset : resets any local changes before updating (git only)
Examples:
gclient %(cmd)s
@@ -1129,6 +1130,9 @@
help=("(update/sync only) sync deps for the "
"specified (comma-separated) platform(s); "
"'all' will sync all platforms"))
+ option_parser.add_option("", "--reset", action="store_true", default=False,
+ help=("(update/sync only) resets any local changes "
+ "before updating (git only)"))
option_parser.add_option("", "--spec", default=None,
help=("(config only) create a gclient file "
"containing the provided string"))
« no previous file with comments | « no previous file | gclient_scm.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698