summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorNico Sallembien <nsallembien@google.com>2010-05-11 12:57:01 -0700
committerShawn O. Pearce <sop@google.com>2010-05-17 09:58:55 -0700
commit6623b21e1073a70f7d5cc6eddd364bdab337b439 (patch)
tree263eae9244b36953f1af92f0ced2a1de69ca7b50 /subcmds/sync.py
parentca8c32cd7ae7c3ae27bb6b649eafbfd54d77f916 (diff)
downloadgit-repo-6623b21e1073a70f7d5cc6eddd364bdab337b439.tar.gz
Aliasing sync -s to 'smartsync'v1.6.9.7
This alias will let people use this command without having to remember the option. Change-Id: I3256d9e8e884c5be9e77f70e9cfb73e0f0c544c6
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 613cc81c..9b8a6122 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -94,7 +94,7 @@ later is required to fix a server side protocol bug.
94 94
95""" 95"""
96 96
97 def _Options(self, p): 97 def _Options(self, p, show_smart=True):
98 p.add_option('-l','--local-only', 98 p.add_option('-l','--local-only',
99 dest='local_only', action='store_true', 99 dest='local_only', action='store_true',
100 help="only update working tree, don't fetch") 100 help="only update working tree, don't fetch")
@@ -104,9 +104,10 @@ later is required to fix a server side protocol bug.
104 p.add_option('-d','--detach', 104 p.add_option('-d','--detach',
105 dest='detach_head', action='store_true', 105 dest='detach_head', action='store_true',
106 help='detach projects back to manifest revision') 106 help='detach projects back to manifest revision')
107 p.add_option('-s', '--smart-sync', 107 if show_smart:
108 dest='smart_sync', action='store_true', 108 p.add_option('-s', '--smart-sync',
109 help='smart sync using manifest from a known good build') 109 dest='smart_sync', action='store_true',
110 help='smart sync using manifest from a known good build')
110 111
111 g = p.add_option_group('repo Version options') 112 g = p.add_option_group('repo Version options')
112 g.add_option('--no-repo-verify', 113 g.add_option('--no-repo-verify',