This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Retrieves the datetime of the last commit in UTC for the current Git branch. | |
* | |
* The author timestamp is used for its consistency across different | |
* repositories and its inclusion in the Git commit hash calculation. This makes | |
* it a stable choice for reproducible builds. | |
* | |
* @returns Millisecond precision timestamp in UTC of the last commit on the | |
* current branch. If the branch is detached or has no commits, it will throw an | |
* error. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Enum representing the possible states of the parser. | |
*/ | |
enum State { | |
Start, | |
Key, | |
Value, | |
Comment, | |
} |
OlderNewer