├── .gitattributes ├── .github └── workflows │ └── main.yml ├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── README.md ├── git.c.in ├── git.h ├── git_watcher.cmake └── tests ├── assert.sh ├── hello-world ├── CMakeLists.txt └── main.cc ├── interfaces ├── c99 │ ├── CMakeLists.txt │ └── main.c └── cxx98_cxx17 │ ├── CMakeLists.txt │ └── main.cc ├── run_all.sh ├── test_branch_name.sh ├── test_commit_attributes.sh ├── test_dirty_head.sh ├── test_dirty_head_untracked.sh ├── test_git_created_post_configure.sh ├── test_git_describe_with_tag.sh ├── test_interfaces.sh ├── test_make_clean.sh ├── test_modified_preconfig_file.sh ├── test_multiline_messages.sh ├── test_new_commits.sh ├── test_no_change_means_no_rebuild.sh ├── test_no_git_history.sh ├── test_quote_messages.sh ├── test_semicolon_multiline_commit_message.sh └── util.sh /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .vscode -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/README.md -------------------------------------------------------------------------------- /git.c.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/git.c.in -------------------------------------------------------------------------------- /git.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/git.h -------------------------------------------------------------------------------- /git_watcher.cmake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/git_watcher.cmake -------------------------------------------------------------------------------- /tests/assert.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/assert.sh -------------------------------------------------------------------------------- /tests/hello-world/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/hello-world/CMakeLists.txt -------------------------------------------------------------------------------- /tests/hello-world/main.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/hello-world/main.cc -------------------------------------------------------------------------------- /tests/interfaces/c99/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/interfaces/c99/CMakeLists.txt -------------------------------------------------------------------------------- /tests/interfaces/c99/main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/interfaces/c99/main.c -------------------------------------------------------------------------------- /tests/interfaces/cxx98_cxx17/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/interfaces/cxx98_cxx17/CMakeLists.txt -------------------------------------------------------------------------------- /tests/interfaces/cxx98_cxx17/main.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/interfaces/cxx98_cxx17/main.cc -------------------------------------------------------------------------------- /tests/run_all.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/run_all.sh -------------------------------------------------------------------------------- /tests/test_branch_name.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_branch_name.sh -------------------------------------------------------------------------------- /tests/test_commit_attributes.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_commit_attributes.sh -------------------------------------------------------------------------------- /tests/test_dirty_head.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_dirty_head.sh -------------------------------------------------------------------------------- /tests/test_dirty_head_untracked.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_dirty_head_untracked.sh -------------------------------------------------------------------------------- /tests/test_git_created_post_configure.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_git_created_post_configure.sh -------------------------------------------------------------------------------- /tests/test_git_describe_with_tag.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_git_describe_with_tag.sh -------------------------------------------------------------------------------- /tests/test_interfaces.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_interfaces.sh -------------------------------------------------------------------------------- /tests/test_make_clean.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_make_clean.sh -------------------------------------------------------------------------------- /tests/test_modified_preconfig_file.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_modified_preconfig_file.sh -------------------------------------------------------------------------------- /tests/test_multiline_messages.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_multiline_messages.sh -------------------------------------------------------------------------------- /tests/test_new_commits.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_new_commits.sh -------------------------------------------------------------------------------- /tests/test_no_change_means_no_rebuild.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_no_change_means_no_rebuild.sh -------------------------------------------------------------------------------- /tests/test_no_git_history.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_no_git_history.sh -------------------------------------------------------------------------------- /tests/test_quote_messages.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_quote_messages.sh -------------------------------------------------------------------------------- /tests/test_semicolon_multiline_commit_message.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/test_semicolon_multiline_commit_message.sh -------------------------------------------------------------------------------- /tests/util.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrew-hardin/cmake-git-version-tracking/HEAD/tests/util.sh --------------------------------------------------------------------------------