-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Add git revision info to commandline output of
--extended-version
With this commit, the output of `elastix.exe --extended-version` will look something like this: elastix version: 5.0.1 Git revision SHA: 81eb3b3 Git revision date: Fri Jul 8 11:46:04 2022 +0200 Build date: Jul 8 2022 15:15:40 Compiler: Visual C++ version 192930145.0 Memory address size: 64-bit CMake version: 3.23.1 ITK version: 5.3.0 Triggered by issue #671 "Version numbering of develop branch", submitted by Sebastian van der Voort.
- Loading branch information
Showing
4 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*========================================================================= | ||
* | ||
* Copyright Leiden University Medical Center, Erasmus University Medical | ||
* Center and contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0.txt | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*=========================================================================*/ | ||
|
||
#ifndef elxGitRevisionSha_h | ||
#define elxGitRevisionSha_h | ||
|
||
namespace elastix | ||
{ | ||
constexpr const char* gitRevisionSha = "@ELX_GIT_REVISION_SHA@"; | ||
constexpr const char* gitRevisionDate = "@ELX_GIT_REVISION_DATE@"; | ||
|
||
} | ||
|
||
#endif |
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