Coder Social home page Coder Social logo

Comments (2)

sebastian-meyer avatar sebastian-meyer commented on June 23, 2024

What's the benefit of annotated tags over lightweight tags?

Tags are currently set when preparing a new release. This is automated by GitHub as part of the release workflow and I don't see how I could GitHub tell to use another kind of tag...

from kitodo-presentation.

stweil avatar stweil commented on June 23, 2024

Annotated tags are handled similar to commits, for example using the command line:

# Create an unsigned annotated tag.
git tag -a -m "New release v6.0.1" v6.0.1
git push origin v6.0.1

# Create a signed annotated tag.
git tag -s -m "New release v6.0.2" v6.0.2
git push origin v6.0.2

Those steps are done before the release is published on GitHub, so the GitHub release process won't create an additional tag.

Like a commit an annotated tag has an author, a timestamp, a message and optionally a digital signature. I suggest to use signed annotated tags, but even unsigned annotated tags are an improvement compared with lightweight tags.

As I wrote in my report above, git recommends using annotated tags for releases.
The command git describe looks for annotated tags by default.

This is the answer to your question from a chatbot:

  • Annotated tags allow you to add a message to the tag, which provides more information about why the tag was created
    and what changes were made in the codebase. This can be useful for documenting changes and providing context for other
    developers.
  • Annotated tags also allow you to sign your commits, which can help ensure that your code has not been tampered with
    and is authentic.
  • Annotated tags provide a more comprehensive commit history, making it easier to understand how different versions of
    your code are related and how they have changed over time.
  • Lightweight tags do not have these additional features, so if you need more advanced version control functionality,
    annotated tags may be a better choice.

from kitodo-presentation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.