git-repo/subcmds
Mike Frysinger 5f2b045195 sync: change how we preserve objects in shared repos
Some automatic git operations will prune objects on us, and not just
the gc step.  Normally we don't care, but with shared projects, we
will have multiple git checkouts with refs that the others cannot
see, but with a shared object dir.  Any pruning of objects based on
refs in just one repo can easily break the others.

git-2.7.0 introduced a preciousObjects setting which tells git to
never prune objects for this exact scenario: there might be refs in
some location that git is unable to see.

Change-Id: I781de27c5bbe1d4c70f0187566141c9cce088bd8
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254392
Reviewed-by: Nasser Grainawi <nasser@codeaurora.org>
Reviewed-by: David Riley <davidriley@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
2020-02-11 23:58:43 +00:00
..
__init__.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
abandon.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
branches.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
checkout.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
cherry_pick.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
diff.py diff: handle errors gracefully 2019-10-01 05:44:09 +00:00
diffmanifests.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
download.py remove spurious +x bits 2020-02-09 23:24:03 +00:00
forall.py Fixing forall subcommand for Py3 2020-02-10 10:52:27 +00:00
gitc_delete.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
gitc_init.py init: handle -c conflicts with gitc-init 2020-02-05 16:00:10 +00:00
grep.py grep: handle errors gracefully 2019-10-01 05:45:58 +00:00
help.py help: unify command display 2019-12-03 02:31:05 +00:00
info.py info: Add the manifest revision 2020-01-24 14:46:30 +00:00
init.py Fix inverted logic around [gitc-]init and -c 2020-02-07 20:54:34 +00:00
list.py split out cli validation from execution 2019-08-28 03:54:11 +00:00
manifest.py use open context managers in more places 2019-11-12 03:44:39 +00:00
overview.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
prune.py prune: handle branches that track missing branches 2019-11-16 19:55:02 +00:00
rebase.py rebase: add basic coloring output 2019-09-24 04:17:03 +00:00
selfupdate.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
smartsync.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
stage.py set default file encoding to utf-8 2019-06-13 14:30:52 +00:00
start.py Add repo start option to create the branch based off HEAD 2019-09-04 04:34:50 +00:00
status.py status: import print_function 2019-06-14 14:13:23 +00:00
sync.py sync: change how we preserve objects in shared repos 2020-02-11 23:58:43 +00:00
upload.py upload/editor: fix bytes/string confusion 2019-11-16 23:55:30 +00:00
version.py version: add source versions & User-Agents to the output 2019-10-01 05:47:35 +00:00