Add version info at the end of output and stdout #148
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
このプルリクは何?
バージョン情報を表示する #146 を実装
アウトプットの例
dcaspt2 -vでもバージョン情報を表示できます
~/develop/dirac_caspt2 (version-commit-hash) $ ./bin/dcaspt2 -v dirac-caspt2 version (commit hash): 26788fbbfd523ef1c19c9ae8a971e54de520fdb0
実装の内容
CMakeLists.txtにgitのコミットハッシュを読んでbin/.commit_hashに保存する処理を追加
dirac_caspt2/CMakeLists.txt
Lines 79 to 98 in 7778dce
dcaspt2スクリプトにbin/.commit_hashを読む処理を追加
dirac_caspt2/tools/dcaspt2_input
Lines 403 to 418 in f22b312
アウトプットと標準出力にバージョン情報としてコミットハッシュを出力する
dirac_caspt2/tools/dcaspt2_input
Line 359 in 26788fb
(optional) 考慮事項