git-repo/subcmds
Kevin Degi abaa7f312f Add option to correct gitdir when syncing
In some cases, a user may wish to continue with a sync even though
it would require overwriting an existing git directory. This behavior
is not safe as a default because it could result in the loss of some
user data, but as an optional flag it allows the user more flexibility.

To support this, add a --force-sync flag to the sync command that will
attempt to overwrite the existing git dir if it is specified and the
existing git dir points to the wrong obj dir.

Change-Id: Ieddda8ad54e264a1eb4a9d54881dd6ebc8a03833
2015-07-29 14:44:46 -06:00
..
__init__.py Some fixes for supporting python3 2013-04-18 21:35:49 +05:30
abandon.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
branches.py Provide detail print-out when not all projects of a branch are current. 2014-07-11 10:56:03 -07:00
checkout.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
cherry_pick.py Fix 'repo cherry-pick' to avoid hanging on commit-msg update. 2015-06-22 08:00:20 -04:00
diff.py Option for 'repo diff' to generate output suitable for 'patch' cmd 2012-04-13 09:20:10 -07:00
diffmanifests.py Add the "diffmanifests" command 2014-02-17 11:20:11 +00:00
download.py Exit 1 if repo download -c fails 2014-10-17 15:45:57 -04:00
forall.py forall: use smart sync override manifest if it exists 2015-07-06 16:18:06 +09:00
grep.py Tidy up code formatting a bit more 2012-11-14 12:09:38 +09:00
help.py Some fixes for supporting python3 2013-04-18 21:35:49 +05:30
info.py Prevent repo info from crashing when default element doesn't exist. 2015-07-27 16:56:31 -07:00
init.py init: don't call urllib.parse 2015-06-04 00:33:33 +00:00
list.py Remove unused show_smart option on list and info commands 2013-05-16 09:32:18 +09:00
manifest.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
overview.py Some fixes for supporting python3 2013-04-18 21:35:49 +05:30
prune.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
rebase.py repo: Support multiple branches for the same project. 2013-10-14 15:34:32 -07:00
selfupdate.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00
smartsync.py Clean up imports 2012-09-18 09:54:57 +02:00
stage.py stage: replace filter on lambda with list comprehension 2013-05-08 06:37:15 +01:00
start.py If revision is sha hash and dest-branch is defined, use it for starting branch 2014-10-27 12:25:05 +00:00
status.py status: lose dependence on StringIO 2015-04-04 21:21:49 +01:00
sync.py Add option to correct gitdir when syncing 2015-07-29 14:44:46 -06:00
upload.py upload: report names of uncommitted files 2014-10-14 11:20:05 -07:00
version.py Change print statements to work in python3 2012-11-13 17:33:56 -08:00