File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,12 @@ _list_encrypted_files() {
173173 # List files with -z option to disable quoting of filenames, then
174174 # immediately convert NUL-delimited filenames to be newline-delimited to be
175175 # compatibility with bash variables
176+ # List files with -z option to disable quoting of filenames,
177+ # then filter for files marked for encryption (git check-attr + grep),
178+ # then only keep filenames (sed)
179+ # then evaluate escaped characters like double-quotes, backslash and control characters (eval)
180+ # which are part of the output regardless of core.quotePath=false as per
181+ # https://git-scm.com/docs/git-config#Documentation/git-config.txt-corequotePath
176182 git -c core.quotePath=false ls-files -z | tr ' \0' ' \n' |
177183 git -c core.quotePath=false check-attr filter --stdin 2> /dev/null |
178184 {
You can’t perform that action at this time.
0 commit comments