https://github.com/baba-s/unigitcommithash
【Unity】Git のコミットハッシュを管理するスクリプトを生成するエディタ拡張
https://github.com/baba-s/unigitcommithash
unity unity-editor unity-extension unity3d
Last synced: about 1 month ago
JSON representation
【Unity】Git のコミットハッシュを管理するスクリプトを生成するエディタ拡張
- Host: GitHub
- URL: https://github.com/baba-s/unigitcommithash
- Owner: baba-s
- License: unlicense
- Created: 2020-04-13T11:12:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-13T23:59:44.000Z (about 6 years ago)
- Last Synced: 2025-01-15T01:31:55.358Z (over 1 year ago)
- Topics: unity, unity-editor, unity-extension, unity3d
- Language: C#
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# UniGitCommitHash
Git のコミットハッシュを管理するスクリプトを生成するエディタ拡張


[](https://github.com/baba-s/UniGitCommitHash/blob/master/LICENSE.md)
## 使用例
```cs
var outputPath = "Assets/Scripts/GitCommitHash.cs";
var option = new CommitLogOption
(
count: 10,
isNoMerges: false,
format: "%h %cd %cn %s"
);
var template = $@"public static class GitCommitHash
{{
public const string COMMIT_HASH = ""{GitCommitHashCodeGenerator.COMMIT_HASH_TAG}"";
public const string SHORT_COMMIT_HASH = ""{GitCommitHashCodeGenerator.SHORT_COMMIT_HASH_TAG}"";
public const string COMMIT_LOG_TAG = @""{GitCommitHashCodeGenerator.COMMIT_LOG_TAG}"";
}}";
GitCommitHashCodeGenerator.Generate( outputPath, template, option );
```