pack-bitmap.c: avoid exposing absolute paths
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest4 patches 4 repliesIn review
- v44 patches 10 repliesSuperseded
- v3 posting 2/20 of 2 patches 6 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 posting 1/2 | 2 patches | 7 replies | Superseded | |
| v2 | 1 patch | 5 replies | Superseded | |
| v1 | 1 patch | 15 replies | Superseded |
Changes in v5 from the cover letter
* [3/4] Reroll the commit message.
* [4/4] Reroll the commit message and remove the initialization of 'found'.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | pack-bitmap.c: remove unnecessary "open_pack_index()" callspack-bitmap.c | +0 | 0 replies | |
| 2/4 | pack-bitmap.c: avoid exposing absolute pathspack-bitmap.c t/ | +9 | 0 replies | |
| 3/4 | pack-bitmap.c: break out of the bitmap loop early if not tracingpack-bitmap.c | +8 | 2 replies | |
| 4/4 | pack-bitmap.c: trace bitmap ignore logs when midx-bitmap is foundpack-bitmap.c | +12 | 0 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by.
| Patch | XingXin |
|---|---|
| 1/4 | |
| 2/4 | Found-by |
| 3/4 | |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/4] pack-bitmap.c: avoid exposing absolute paths
From: Teng Long <[email protected]>
Changes since v4:
* [3/4] Reroll the commit message.
* [4/4] Reroll the commit message and remove the initialization of 'found'.
Besides of 3/4 and 4/4, the 1/4 and 2/4 seem already in 'next' as 8ddc06631b184e6f43051f7ea8ac9bbc86817127 and 2aa84d5f3ea1966a81477ad31bee0136e39d3917 , but I send again here just for the completeness of the patchset, I think it will be nice to merge Peff's commits of there are no new suggestions.
Thanks.
Jeff King (2):
pack-bitmap.c: break out of the bitmap loop early if not tracing pack-bitmap.c: trace bitmap ignore logs when midx-bitmap is found
Teng Long (2):
pack-bitmap.c: remove unnecessary "open_pack_index()" calls pack-bitmap.c: avoid exposing absolute paths
pack-bitmap.c | 39 ++++++++++++++++++++++++++------------- t/t5310-pack-bitmaps.sh | 5 +++-- 2 files changed, 29 insertions(+), 15 deletions(-)
Range-diff against v4:
-: ---------- > 1: aaeb021538 pack-bitmap.c: remove unnecessary "open_pack_index()" calls -: ---------- > 2: 9d5a491887 pack-bitmap.c: avoid exposing absolute paths 1: f6c5b45bdc ! 3: 22deec6aab pack-bitmap.c: break out of the bitmap loop early if not tracing
@@ Metadata
## Commit message ##
pack-bitmap.c: break out of the bitmap loop early if not tracing
- When we successfully open a bitmap, we will continue to try to open
- other packs, and when trace2 is enabled, we will report any subsequent
- bitmap ignored information in the log. So when we find that trace2 is
- not enabled, we can actually terminate the loop early.
+ After opening a bitmap successfully, we try opening others only
+ because we want to report that other bitmap files are ignored in
+ the trace2 log. When trace2 is not enabled, we do not have to
+ do any of that.
2: 2acaa3f097 ! 4: 28306b7e8d pack-bitmap.c: trace bitmap ignore logs when midx-bitmap is found
@@ Metadata
## Commit message ##
pack-bitmap.c: trace bitmap ignore logs when midx-bitmap is found
- We retained pack bitmaps as a quick recovery mechanism while
- test-deploying midx bitmaps. This is an internal mechanism, and we
- want to expose this rule externally through trace2 so that end users,
- repo-maintainers, and debuggers know what is happening in the process.
+ When we find a midx bitmap, we do not bother checking for pack
+ bitmaps, since we can use only one. But since we will warn of unused
+ bitmaps via trace2, let's continue looking for pack bitmaps when
+ tracing is enabled.
@@ pack-bitmap.c: static int open_midx_bitmap(struct repository *r,
static int open_bitmap(struct repository *r,
struct bitmap_index *bitmap_git)
{
-+ int found = 0;
++ int found;
+
assert(!bitmap_git->map);
Signature · 1 line
2.38.1.385.g28306b7e8d5