mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	Usage:
func.exe -V
adnl-pong -V
validator-engine -V
and so on.
Result will be shown in the following format:
Func build information: [ Commit: d8b751d7a5, Date: 2021-02-27 14:34:41 +0200]
		
	
			
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			684 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			684 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include "git.h"
 | |
| 
 | |
| bool GitMetadata::Populated() {
 | |
|     return @GIT_RETRIEVED_STATE@;
 | |
| }
 | |
| bool GitMetadata::AnyUncommittedChanges() {
 | |
|     return @GIT_IS_DIRTY@;
 | |
| }
 | |
| std::string GitMetadata::AuthorName() {
 | |
|     return "@GIT_AUTHOR_NAME@";
 | |
| }
 | |
| std::string GitMetadata::AuthorEmail() {
 | |
|     return "@GIT_AUTHOR_EMAIL@";
 | |
| }
 | |
| std::string GitMetadata::CommitSHA1() {
 | |
|     return "@GIT_HEAD_SHA1@";
 | |
| }
 | |
| std::string GitMetadata::CommitDate() {
 | |
|     return "@GIT_COMMIT_DATE_ISO8601@";
 | |
| }
 | |
| std::string GitMetadata::CommitSubject() {
 | |
|     return "@GIT_COMMIT_SUBJECT@";
 | |
| }
 | |
| std::string GitMetadata::CommitBody() {
 | |
|     return @GIT_COMMIT_BODY@;
 | |
| }
 | |
| std::string GitMetadata::Describe() {
 | |
|     return "@GIT_DESCRIBE@";
 | |
| }
 |