Vridlo/types/Ref: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
[https://en.wikipedia.org/wiki/SHA-1 SHA1] 40-byted checksum over the referenced object. Is used as unique object index. | [https://en.wikipedia.org/wiki/SHA-1 SHA1] 40-byted checksum over the referenced object. Is used as unique object index. | ||
* '''name''' is ''string ''' | * '''name''' is ''string '''optional write-once''''' | ||
Name of the referenced object, | Name of the referenced object, is the tags name when '''kind''' is ''tag'', blank otherwise. | ||
* '''kind''' is ''string '''mandatory write-once''''' | * '''kind''' is ''string '''mandatory write-once''''' | ||
Type of the referenced object, can one of ''tag'', ''commit'', | Type of the referenced object, can one of ''tag'', ''commit'' | ||
* '''uri''' is ''string '''mandatory write-once''''' | |||
Unique URI of the repository, must begins with ''git'', or ''https''. | |||
* '''author_email''' is ''string '''mandatory''''' | * '''author_email''' is ''string '''mandatory''''' | ||
Author's email of the commit or tag. | Author's email of the commit or tag. The user with the email must exists in the system. | ||
* '''authored_at''' is ''datetime '''mandatory''''' | * '''authored_at''' is ''datetime '''mandatory''''' |
Revision as of 17:16, 12 December 2019
Ref is structure that represents git repo tag or commit reference, and it is described as:
- sha is string[40] mandatory write-once
SHA1 40-byted checksum over the referenced object. Is used as unique object index.
- name is string optional write-once
Name of the referenced object, is the tags name when kind is tag, blank otherwise.
- kind is string mandatory write-once
Type of the referenced object, can one of tag, commit
- uri is string mandatory write-once
Unique URI of the repository, must begins with git, or https.
- author_email is string mandatory
Author's email of the commit or tag. The user with the email must exists in the system.
- authored_at is datetime mandatory
Date of the commit or tag, which was done by the author.
- signed is boolean optional
Flag shows wheither the referenced object is signed.
- message is string optional
Message text of the reference.