Don't lazy-fetch commits when parsing them
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest4 patches 2 repliesIn review
- v54 patches 2 repliesSuperseded
- v44 patches 9 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 4 patches | 9 replies | Superseded | |
| v2 posting 2/2 | 3 patches | 14 replies | Superseded | |
| v2 posting 1/2 | 4 patches | 6 replies | Superseded | |
| v1 | 4 patches | 9 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | object-file: remove OBJECT_INFO_IGNORE_LOOSEobject-file.c object-store.h | +1 | 0 replies | |
| 2/4 | object-file: refactor map_loose_object_1()object-file.c | +24 | 0 replies | |
| 3/4 | object-file: emit corruption errors when detectedobject-file.c object-store.h | +31 | 0 replies | |
| 4/4 | commit: don't lazy-fetch commitscommit.c | +13 | 0 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by.
| Patch | Jeff King |
|---|---|
| 1/4 | Helped-by |
| 2/4 | |
| 3/4 | Helped-by |
| 4/4 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/4] Don't lazy-fetch commits when parsing them
Thanks everyone once again and sorry for the churn. Hopefully I got it right this time.
open_loose_object() is documented to return the path of the object we found, so I think we already have that covered (if we detect that an object is corrupt, it follows that we would already have found the object in the first place).
Jonathan Tan (4):
object-file: remove OBJECT_INFO_IGNORE_LOOSE
object-file: refactor map_loose_object_1()
object-file: emit corruption errors when detected
commit: don't lazy-fetch commits
commit.c | 15 ++++++- object-file.c | 108 ++++++++++++++++++++++++------------------------- object-store.h | 7 ++-- 3 files changed, 69 insertions(+), 61 deletions(-)
Range-diff against v5:
1: be0b08cac2 = 1: be0b08cac2 object-file: remove OBJECT_INFO_IGNORE_LOOSE
2: 4b2fb68743 = 2: 4b2fb68743 object-file: refactor map_loose_object_1()
3: a229ea0b11 ! 3: 811620909a object-file: emit corruption errors when detected
@@ object-file.c: static int loose_object_info(struct repository *r,
int status = 0;
+ int fd;
unsigned long mapsize;
-+ const char *path = NULL;
++ const char *path;
void *map;
git_zstream stream;
char hdr[MAX_HEADER_LEN];
@@ object-file.c: static int loose_object_info(struct repository *r,
break;
}
-+ if (status && path && (flags & OBJECT_INFO_DIE_IF_CORRUPT))
++ if (status && (flags & OBJECT_INFO_DIE_IF_CORRUPT))
+ die(_("loose object %s (stored in %s) is corrupt"),
+ oid_to_hex(oid), path);
+4: b54972118a = 4: 8acf1a29e7 commit: don't lazy-fetch commits
Signature · 1 line
2.39.0.314.g84b9a713c41-goog