Skip to content

Commit

Permalink
Ignore autogenerated CommitHash header and remove it from repo (#224)
Browse files Browse the repository at this point in the history
This will prevent accidentally including autogenerated code and making patches that are difficult to rebase.

CommitHash.hpp is autogenerated by cmake and shouldn't be commited.

Additionally someone with write access should do `git filter-branch` and remove CommitHash.hpp from the previous history or this problem may come back with merging older patches.
  • Loading branch information
keton committed Mar 16, 2024
1 parent 8f54d16 commit a158997
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@
build/*
.vscode/*
out/*
.vs/*
.vs/*

# Ignore autogenerated headers
src/CommitHash.hpp
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,6 @@ list(APPEND uevr_SOURCES
"src/uevr-imgui/imgui_impl_dx12.cpp"
"src/uevr-imgui/imgui_impl_win32.cpp"
"src/utility/ImGui.cpp"
"src/CommitHash.hpp"
"src/ExceptionHandler.hpp"
"src/Framework.hpp"
"src/LicenseStrings.hpp"
Expand Down
4 changes: 0 additions & 4 deletions src/CommitHash.hpp

This file was deleted.

0 comments on commit a158997

Please sign in to comment.