<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/subcmds, branch v2.52</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.52</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.52'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2025-02-05T20:36:27+00:00</updated>
<entry>
<title>gc: Add tags to remote pack list</title>
<updated>2025-02-05T20:36:27+00:00</updated>
<author>
<name>Josip Sokcevic</name>
<email>sokcevic@google.com</email>
</author>
<published>2025-02-05T19:35:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=8d5f03261164f3cd65af0576dfa7d4edded96c67'/>
<id>urn:sha1:8d5f03261164f3cd65af0576dfa7d4edded96c67</id>
<content type='text'>
If tags are omitted from the remote pack list, they must be present in
local pack. However, local packs don't have promisor objects, meaning
that all blobs must be available locally, and therefore all missing
blobs will be downloaded during rev-list phase. Git downloads those
sequentially, by invokving fetch operation (rev-list/fetch).

Instead of downloading tags' blobs, instruct Git to include all tags in
remote rev-list operation. This change was tested with `git fsck --all`.

R=yiwzhang@google.com

Bug: b/392732561
Change-Id: Id94a40aebbe4f084c952329583d559d296db1a11
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/451422
Reviewed-by: Yiwei Zhang &lt;yiwzhang@google.com&gt;
Tested-by: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
Commit-Queue: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
</content>
</entry>
<entry>
<title>Revert "sync: skip network half on repo upgrade"</title>
<updated>2025-01-31T20:01:49+00:00</updated>
<author>
<name>Josip Sokcevic</name>
<email>sokcevic@chromium.org</email>
</author>
<published>2025-01-31T20:00:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=5ae8292fea94bc26aa8c7345f5230899d3d45a63'/>
<id>urn:sha1:5ae8292fea94bc26aa8c7345f5230899d3d45a63</id>
<content type='text'>
This reverts commit 61224d01fa29bcf54dd6d521e09e09a8c0da77fe.

Reason for revert: the manifest will be updated during in the
post-upgrade process, and that can result in a missing object in
LocalHalf, since NetworkHalf is not skipped.

Bug: b/392979411
Change-Id: I8a46e5b54093ed78285c8b30f000bb08a8244179
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/450181
Tested-by: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
Commit-Queue: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
Reviewed-by: Scott Lee &lt;ddoman@google.com&gt;
</content>
</entry>
<entry>
<title>docs: smart-sync: split out &amp; expand details</title>
<updated>2025-01-31T03:17:24+00:00</updated>
<author>
<name>Mike Frysinger</name>
<email>vapier@google.com</email>
</author>
<published>2025-01-31T00:11:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=dfdf577e98f6e9b13a3236767316863b3a995c01'/>
<id>urn:sha1:dfdf577e98f6e9b13a3236767316863b3a995c01</id>
<content type='text'>
The existing documentation on smart-sync behavior is a bit light on
details, and out of date wrt what the code actually does.  Start a
dedicated document and fill it out more.

Change-Id: I1a8a3ac6edf9291d72182ad55db865035d9b683e
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/450002
Commit-Queue: Mike Frysinger &lt;vapier@google.com&gt;
Tested-by: Mike Frysinger &lt;vapier@google.com&gt;
Reviewed-by: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
</content>
</entry>
<entry>
<title>gc: Add repack option</title>
<updated>2025-01-14T23:17:34+00:00</updated>
<author>
<name>Josip Sokcevic</name>
<email>sokcevic@chromium.org</email>
</author>
<published>2025-01-14T19:20:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=3405446a4eb382467ef539764f6a31869fd1ce43'/>
<id>urn:sha1:3405446a4eb382467ef539764f6a31869fd1ce43</id>
<content type='text'>
When a repository is partially cloned, no longer needed blobs are never
removed. To reclaim some of disk space, allow user to pass --repack
which affects only repositories with filter=blob:none and if projects
are not shared.

Change-Id: I0608172c9eff82fb8a6b6ef703eb109fedb7a6cc
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/447722
Commit-Queue: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
Tested-by: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
Reviewed-by: Scott Lee &lt;ddoman@google.com&gt;
</content>
</entry>
<entry>
<title>gc: extract deletion from Execute method</title>
<updated>2025-01-14T20:33:45+00:00</updated>
<author>
<name>Josip Sokcevic</name>
<email>sokcevic@chromium.org</email>
</author>
<published>2025-01-14T19:16:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=41a27eb854b011f1506cbf984645df5a0f67ad00'/>
<id>urn:sha1:41a27eb854b011f1506cbf984645df5a0f67ad00</id>
<content type='text'>
Change-Id: Icef4f28fbdb9658892611def7589f5eba43c952c
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/447721
Reviewed-by: Scott Lee &lt;ddoman@google.com&gt;
Commit-Queue: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
Tested-by: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
</content>
</entry>
<entry>
<title>sync: Handle KeyboardInterrupt during checkout</title>
<updated>2025-01-08T21:36:52+00:00</updated>
<author>
<name>Josip Sokcevic</name>
<email>sokcevic@chromium.org</email>
</author>
<published>2025-01-08T18:31:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=d93fe60e893435d9eb3a08dd59d92def40798e95'/>
<id>urn:sha1:d93fe60e893435d9eb3a08dd59d92def40798e95</id>
<content type='text'>
KeyboardInterrupt is handled during NetworkHalf. This patch handles
KeyboardInterrupt during LocalHalf.

Bug: b/372069163
Change-Id: I26847f7ca3cdf1fe57b265b4f6b18cc8102d2921
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/447401
Tested-by: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
Reviewed-by: Gavin Mak &lt;gavinmak@google.com&gt;
</content>
</entry>
<entry>
<title>sync: skip network half on repo upgrade</title>
<updated>2024-12-18T19:49:17+00:00</updated>
<author>
<name>Josip Sokcevic</name>
<email>sokcevic@chromium.org</email>
</author>
<published>2024-12-18T18:37:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=61224d01fa29bcf54dd6d521e09e09a8c0da77fe'/>
<id>urn:sha1:61224d01fa29bcf54dd6d521e09e09a8c0da77fe</id>
<content type='text'>
When repo upgrades itself, it will restart itself and rerun sync
command. At that point, we know that network half is already done and we
can just proceed with local half.

R=ddoman@google.com

Bug: b/377567091
Change-Id: I77205b1f2df19891597347d55283a617de3c6634
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/446201
Reviewed-by: Scott Lee &lt;ddoman@google.com&gt;
Tested-by: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
Commit-Queue: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
</content>
</entry>
<entry>
<title>gc: Introduce new command to remove old projects</title>
<updated>2024-12-18T17:23:49+00:00</updated>
<author>
<name>Josip Sokcevic</name>
<email>sokcevic@chromium.org</email>
</author>
<published>2024-12-16T22:30:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=13d6588bf60f0980ffa3d178441fa707655fee95'/>
<id>urn:sha1:13d6588bf60f0980ffa3d178441fa707655fee95</id>
<content type='text'>
When projects are removed from manifest, they are only removed from
worktree and not from .repo/projects and .repo/project-objects. Keeping
data under .repo can be desired if user expects deleted projects to be
restored (e.g. checking out a release branch).

Android has ongoing effort to remove many stale projects and this change
allows users to easily free-up their disk space.

Bug: b/344018971
Bug: 40013312
Change-Id: Id23c7524a88082ee6db908f9fd69dcd5d0c4f681
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/445921
Reviewed-by: Mike Frysinger &lt;vapier@google.com&gt;
Commit-Queue: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
Reviewed-by: Gavin Mak &lt;gavinmak@google.com&gt;
Tested-by: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
</content>
</entry>
<entry>
<title>sync: Delete symlinks relative to client topdir</title>
<updated>2024-12-16T18:23:40+00:00</updated>
<author>
<name>Josip Sokcevic</name>
<email>sokcevic@chromium.org</email>
</author>
<published>2024-12-13T18:24:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=9500aca754058bff18ddf35db62852ca4f722c63'/>
<id>urn:sha1:9500aca754058bff18ddf35db62852ca4f722c63</id>
<content type='text'>
If repo sync is invoked outside the repo root, and the latest manifest
removes symlinks, repo incorrectly tries to remove symlink - it starts
from `cwd` instead of the repo root.

Bug: b/113935847
Bug: 40010423
Change-Id: Ia50ea70a376e38c94389880f020c80da3c3f453c
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/445901
Tested-by: Josip Sokcevic &lt;sokcevic@chromium.org&gt;
Reviewed-by: Gavin Mak &lt;gavinmak@google.com&gt;
</content>
</entry>
<entry>
<title>branches: Escape percent signs in branch names</title>
<updated>2024-12-03T19:02:20+00:00</updated>
<author>
<name>Josip Sokcevic</name>
<email>sokcevic@google.com</email>
</author>
<published>2024-11-22T20:11:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=1feecbd91eac1b4a30e74f5356b61607d13ce89f'/>
<id>urn:sha1:1feecbd91eac1b4a30e74f5356b61607d13ce89f</id>
<content type='text'>
If a branch name contains a percent sign, it will be interpreted as a placeholder and color.py will fail to format it.

To avoid this, escape the percent signs prior to calling Coloring
method.

Bug: b/379090488
Change-Id: Id019c776bbf8cbed5c101f2773606f1d32c9e057
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/443801
Reviewed-by: Scott Lee &lt;ddoman@google.com&gt;
Tested-by: Josip Sokcevic &lt;sokcevic@google.com&gt;
Commit-Queue: Josip Sokcevic &lt;sokcevic@google.com&gt;
</content>
</entry>
</feed>
