-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
バージョン情報で git の commit hash を表示する #19
バージョン情報で git の commit hash を表示する #19
Conversation
ご対応ありがとうございます。動作良さそうです。 pre-build で PowerShell 使えればもう少しシンプルになりそうなんですけどね……今ちょっと調べています。 |
sakura_core/dlg/CDlgAbout.cpp
Outdated
HIWORD(dwVersionLS), | ||
LOWORD(dwVersionLS) | ||
); | ||
#elif (SVN_REV == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
svnrev 関連はもう使わないので「削除」しちゃってOKです
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
svnrev 関連はもう使わないので「削除」しちゃってOKです
a69e8d0 で削除しました。
別のプルリクエストで対応しようと思ってたのですが、
このプルリクエストで対応しました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
お手数おかけします、ありがとうございます!
sakura_core/dlg/CDlgAbout.cpp
Outdated
@@ -165,7 +167,14 @@ BOOL CDlgAbout::OnInitDialog( HWND hwndDlg, WPARAM wParam, LPARAM lParam ) | |||
// �o�[�W����&���r�W������� | |||
DWORD dwVersionMS, dwVersionLS; | |||
GetAppVersionInfo( NULL, VS_VERSION_INFO, &dwVersionMS, &dwVersionLS ); | |||
#if (SVN_REV == 0) | |||
#if defined(GIT_COMMIT_HASH) | |||
auto_sprintf(szMsg, _T("Ver. %d.%d.%d.%d\r\n(hash ") _T(GIT_COMMIT_HASH) _T(")\r\n"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここは hash
よりも GitHash
と明示したほうが良さそうに思いました
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここは hash よりも GitHash と明示したほうが良さそうに思いました
eee259f で対応しました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます~ 🙏
sakura_core/sakura_rc.rc
Outdated
#if (SVN_REV != 0) | ||
#if defined(GIT_SHORT_COMMIT_HASH) | ||
" (hash " GIT_SHORT_COMMIT_HASH ")" | ||
#elif (SVN_REV != 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここは hash
よりも GitHash
と明示したほうが良さそうに思いました(上と同様)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここは hash よりも GitHash と明示したほうが良さそうに思いました(上と同様)
上と同様 eee259f で対応しました。
#28 はリファクタリングネタとして、このプルリクエストとは別に対応するとして、このプルリクエストは一旦マージしませんか? |
…-commit-hash バージョン情報で git の commit hash を表示する
バージョン情報で git の commit hash を表示する
git の commit hash の取得
git show -s --format=%H
git の commit hash (短い形式) の取得
git show -s --format=%h
バッチファイルのエスケープ
http://www.robvanderwoude.com/escapechars.php
コマンド出力を変数に代入する方法
http://bleis-tift.hatenablog.com/entry/20080502/1209689071