@@ -92,14 +92,14 @@ using the command line options. Run `transcrypt --help` for more details.
92
92
### Designate a File to be Encrypted
93
93
94
94
Once a repository has been configured with transcrypt, you can designate for
95
- files to be encrypted by applying the "crypt" filter and diff to a
95
+ files to be encrypted by applying the "crypt" filter, diff, and merge to a
96
96
[ pattern] ( https://www.kernel.org/pub/software/scm/git/docs/gitignore.html#_pattern_format )
97
97
in the top-level _ [ .gitattributes] ( http://git-scm.com/docs/gitattributes ) _
98
98
config. If that pattern matches a file in your repository, the file will be
99
99
transparently encrypted once you stage and commit it:
100
100
101
101
$ cd <path-to-your-repo>/
102
- $ echo 'sensitive_file filter=crypt diff=crypt' >> .gitattributes
102
+ $ echo 'sensitive_file filter=crypt diff=crypt merge=crypt ' >> .gitattributes
103
103
$ git add .gitattributes sensitive_file
104
104
$ git commit -m 'Add encrypted version of a sensitive file'
105
105
@@ -311,6 +311,15 @@ To run the tests:
311
311
312
312
## Changes
313
313
314
+ Fixes:
315
+
316
+ - Fix handling of branch merges with conflicts in encrypted files, which
317
+ would previously leave the user to manually merge files with a mix of
318
+ encrypted and unencrypted content.
319
+
320
+ To apply this fix in projects that already use transcrypt: uninstall and
321
+ re-init transcrypt, then add ` merge=crypt ` to the patterns in * .gitattributes*
322
+
314
323
Improvements:
315
324
316
325
- Add Git pre-commit hook to reject commit of file that should be encrypted but
0 commit comments