aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing
diff options
context:
space:
mode:
authorChris Marchesi <chrism@vancluevertech.com>2018-08-18 11:03:33 -0700
committerChris Marchesi <chrism@vancluevertech.com>2018-08-21 17:43:29 -0700
commitb9f5efe3dbee0cd15a553bcc03f7a37f3dcaa676 (patch)
tree3aca261e608995102d63b8898f1e19c11177562e /plumbing
parent7b6c1266556f59ac436fada3fa6106d4a84f9b56 (diff)
downloadgo-git-b9f5efe3dbee0cd15a553bcc03f7a37f3dcaa676.tar.gz
git: Add tagging support
This adds a few methods: * CreateTag, which can be used to create both lightweight and annotated tags with a supplied TagObjectOptions struct. PGP signing is possible as well. * Tag, to fetch a single tag ref. As opposed to Tags or TagObjects, this will also fetch the tag object if it exists and return it along with the output. Lightweight tags just return the object as nil. * DeleteTag, to delete a tag. This simply deletes the ref. The object is left orphaned to be GCed later. I'm not 100% sure if DeleteTag is the correct behavior - looking for details on exactly *what* happens to a tag object if you delete the ref and not the tag were sparse, and groking the Git source did not really produce much insight to the untrained eye. This may be something that comes up in review. If deletion of the object is necessary, the in-memory storer may require some updates to allow DeleteLooseObject to be supported. Signed-off-by: Chris Marchesi <chrism@vancluevertech.com>
Diffstat (limited to 'plumbing')
0 files changed, 0 insertions, 0 deletions