Create a new tag from a buffer describing the tag object.
The buffer must be correctly formatted.
this |
a Repository. |
tag |
the tag buffer. |
flags |
a CreateFlags. |
the id to which the tag points, or null in case of an error. |