From 012d78e1fef83d586ec791b5dc8bacf479b971a5 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Mon, 9 Feb 2015 11:37:50 -0800 Subject: [PATCH] Add "do not edit" comment to .git-crypt/.gitattributes file --- commands.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands.cpp b/commands.cpp index 342ba15..c9a6165 100644 --- a/commands.cpp +++ b/commands.cpp @@ -1069,6 +1069,9 @@ int add_gpg_user (int argc, const char** argv) const std::string state_gitattributes_path(state_path + "/.gitattributes"); if (access(state_gitattributes_path.c_str(), F_OK) != 0) { std::ofstream state_gitattributes_file(state_gitattributes_path.c_str()); + // |--------------------------------------------------------------------------------| 80 chars + state_gitattributes_file << "# Do not edit this file. To specify the files to encrypt, create your own\"; + state_gitattributes_file << "# .gitattributes file in the directory where your files are.\n"; state_gitattributes_file << "* !filter !diff\n"; state_gitattributes_file.close(); if (!state_gitattributes_file) {