Skip to content

Commit 7405209

Browse files
docs
1 parent 6d9ec7d commit 7405209

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

transcrypt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
{

0 commit comments

Comments
 (0)