Skip to content

Commit c63a727

Browse files
committed
Mark .gpg files in .git-crypt as binary
To remove any possibility of Git treating them as text by accident. Closes AGWA#55.
1 parent e0b3bd7 commit c63a727

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

commands.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,7 @@ int add_gpg_user (int argc, const char** argv)
12021202
state_gitattributes_file << "# Do not edit this file. To specify the files to encrypt, create your own\n";
12031203
state_gitattributes_file << "# .gitattributes file in the directory where your files are.\n";
12041204
state_gitattributes_file << "* !filter !diff\n";
1205+
state_gitattributes_file << "*.gpg binary\n";
12051206
state_gitattributes_file.close();
12061207
if (!state_gitattributes_file) {
12071208
std::clog << "Error: unable to write " << state_gitattributes_path << std::endl;

0 commit comments

Comments
 (0)