fast-import: tag any object by sha1
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | fast-import: add tests for tagging blobsfast-import.c t/ | +44 | 0 replies | |
| 2/2 | fast-import: allow to tag newly created objectsfast-import.c t/ | +33 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] fast-import: tag any object by sha1
fast-export can export annotated tags that annotate any type of object. It specifies objects via mark references and fast-import accepts this.
fast-import also allows to specify objects via sha1, and to query sha1 for a object being imported. So it should allow to tag a pre-existing or being-imported objects by their sha1. And it currently does not:
- for pre-existing it kind of assumes it is a OBJ_COMMIT, read_sha1_file()s and checks only for (size >= 46), weird
- for being-imported objects it calls read_sha1_file too and fails
Just make it produce expected tags in these cases. Add a test for this.
Dmitry Ivankov (2):
fast-import: add tests for tagging blobs
fast-import: allow to tag newly created objects
fast-import.c | 14 +++++----- t/t9300-fast-import.sh | 67 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+), 7 deletions(-)
Signature · 1 line
1.7.3.4