From c63a727177b611be53415a5e65140d823135d2f4 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Wed, 29 Jul 2015 21:51:11 -0700 Subject: [PATCH] Mark .gpg files in .git-crypt as binary To remove any possibility of Git treating them as text by accident. Closes #55. --- commands.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/commands.cpp b/commands.cpp index 2b86930..06f42da 100644 --- a/commands.cpp +++ b/commands.cpp @@ -1202,6 +1202,7 @@ int add_gpg_user (int argc, const char** argv) state_gitattributes_file << "# Do not edit this file. To specify the files to encrypt, create your own\n"; state_gitattributes_file << "# .gitattributes file in the directory where your files are.\n"; state_gitattributes_file << "* !filter !diff\n"; + state_gitattributes_file << "*.gpg binary\n"; state_gitattributes_file.close(); if (!state_gitattributes_file) { std::clog << "Error: unable to write " << state_gitattributes_path << std::endl;