Skip to content

Refactor the tag object

Johan Herland git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6Refactor git tag objects; make "tag" header optional; introduce new optional "keywords" headermktag.c tag.c tag.h+251 -1672 replies
2/6git-show: When showing tag objects with no tag name, show tag object's SHA1 instead of an empty stringbuiltin-log.c+1 -10 replies
3/6git-fsck: Do thorough verification of tag objects.builtin-fsck.c+14 -03 replies
3/6git-fsck: Do thorough verification of tag objects.builtin-fsck.c+13 -04 replies
4/6Documentation/git-mktag: Document the changes in tag object structureDocumentation/git-mktag.txt+30 -120 replies
5/6git-mktag tests: Fix and expand the mktag tests according to the new tag object structuret/t3800-mktag.sh+190 -140 replies
6/6Add fsck_verify_ref_to_tag_object() to verify that refname matches name stored in tag objectbuiltin-fsck.c+21 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/6] Refactor the tag object

This patch series implements part of the ground work for the 'notes' feature discussed earlier in the thread "[PATCH 00/15] git-note: A mechanism for providing free-form after-the-fact annotations on commits".

The following patches refactors the tag object by:
1. Making the "tag" header optional
2. Introducing a new optional "keywords" header
3. Making the "tagger" header mandatory as far as possible
4. Do better and more thorough verification of tag objects

Unfortunately the first patch in the series is bigger than I would have liked, but I couldn't find an easy way to split it up.

Here's the shortlog:

Johan Herland (6):
Refactor git tag objects; make "tag" header optional; introduce new optional "keywords" header
git-show: When showing tag objects with no tag name, show tag object's SHA1 instead of an empty string
git-fsck: Do thorough verification of tag objects.
Documentation/git-mktag: Document the changes in tag object structure
git-mktag tests: Fix and expand the mktag tests according to the new tag object structure Add fsck_verify_ref_to_tag_object() to verify that refname matches name stored in tag object

 Documentation/git-mktag.txt |   42 +++++--
 builtin-fsck.c              |   35 ++++++
 builtin-log.c               |    2 +-
 mktag.c                     |  148 +++++-------------------
 t/t3800-mktag.sh            |  204 ++++++++++++++++++++++++++++++---
 tag.c                       |  266 +++++++++++++++++++++++++++++++++++--------
 tag.h                       |    4 +-
 7 files changed, 507 insertions(+), 194 deletions(-)

Have fun!

...Johan

Signature · 2 lines
Johan Herland, <[email protected]>
www.herland.net