Skip to content

Commit 4c93b20

Browse files
committed
🔨 Fix clang-format issue 🔥 Remove automatically generated git.cc file
1 parent a416325 commit 4c93b20

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

.gitignore

+1-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
!*/src/*
1616
!*/include/*
1717
!*/tests/*
18-
!cmake/git_watcher.cmake
19-
!include/git.cc.in
18+
include/git.cc
2019
docs/*
2120
CMakeCache.txt
2221
CMakeFiles/*

include/git.cc

-11
This file was deleted.

include/git.cc.in

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#include "git.h"
22

3+
// clang-format off
34
bool GitMetadata::Populated() { return @GIT_RETRIEVED_STATE@; }
45
bool GitMetadata::AnyUncommittedChanges() { return @GIT_IS_DIRTY@; }
56
std::string GitMetadata::AuthorName() { return "@GIT_AUTHOR_NAME@"; }
@@ -9,3 +10,4 @@ std::string GitMetadata::CommitDate() { return "@GIT_COMMIT_DATE_ISO8601@"; }
910
std::string GitMetadata::CommitSubject() { return "@GIT_COMMIT_SUBJECT@"; }
1011
std::string GitMetadata::CommitBody() { return @GIT_COMMIT_BODY@; }
1112
std::string GitMetadata::Describe() { return "@GIT_DESCRIBE@"; }
13+
// clang-format on

0 commit comments

Comments
 (0)