44 $ git commit -q -- allow-empty -m " empty"
55
66 $ FILTER_HASH= $ (josh-filter -i : [:/ a,:/ b])
7+ $ josh-filter -p $ {FILTER_HASH}
8+ : [
9+ :/ a
10+ :/ b
11+ ]
712 $ git read-tree -- reset -u $ {FILTER_HASH}
813 $ find . -type f -not -path ' ./.git/*' -exec echo " -- { } " \; -exec cat {} \;
914 -- . /compose /0 / subdir/ 0
5661 $ josh-filter -- reverse -p : [: empty,:/ a]
5762 : prefix= a
5863 $ FILTER_HASH= $ (josh-filter -i : [x = :/ a:/ b:/ d,y= :/ a:/ c:/ d])
64+ $ josh-filter -p $ {FILTER_HASH}
65+ :/ a: [
66+ x = : /b /d
67+ y = : /c /d
68+ ]
5969 $ git read-tree -- reset -u $ {FILTER_HASH}
6070 $ tree
6171 .
@@ -415,6 +425,8 @@ Test File filter tree representations
415425
416426Test ::file. txt (single argument, no trailing slash, no = , no * )
417427 $ FILTER_HASH= $ (josh-filter -i ::file. txt)
428+ $ josh-filter -p $ {FILTER_HASH}
429+ ::file. txt
418430 $ git read-tree -- reset -u $ {FILTER_HASH}
419431 $ tree
420432 .
@@ -443,6 +455,8 @@ Test ::file.txt (single argument, no trailing slash, no =, no *)
443455
444456Test ::dest. txt= src. txt (with = , destination= source)
445457 $ FILTER_HASH= $ (josh-filter -i ::dest. txt= src. txt)
458+ $ josh-filter -p $ {FILTER_HASH}
459+ ::dest. txt= src. txt
446460 $ git read-tree -- reset -u $ {FILTER_HASH}
447461 $ tree
448462 .
@@ -471,6 +485,8 @@ Test ::dest.txt=src.txt (with =, destination=source)
471485
472486Test ::*. txt (with * , pattern)
473487 $ FILTER_HASH= $ (josh-filter -i ::*. txt)
488+ $ josh-filter -p $ {FILTER_HASH}
489+ ::*. txt
474490 $ git read-tree -- reset -u $ {FILTER_HASH}
475491 $ tree
476492 .
@@ -490,6 +506,8 @@ Test ::*.txt (with *, pattern)
490506
491507Test ::dir/ (with trailing slash, directory)
492508 $ FILTER_HASH= $ (josh-filter -i ::dir/ )
509+ $ josh-filter -p $ {FILTER_HASH}
510+ ::dir/
493511 $ git read-tree -- reset -u $ {FILTER_HASH}
494512 $ tree
495513 .
@@ -522,6 +540,8 @@ Test ::dir/ (with trailing slash, directory)
522540
523541Test ::a/ b/ c/ (nested directory path with trailing slash)
524542 $ FILTER_HASH= $ (josh-filter -i ::a/ b/ c/ )
543+ $ josh-filter -p $ {FILTER_HASH}
544+ ::a/ b/ c/
525545 $ git read-tree -- reset -u $ {FILTER_HASH}
526546 $ tree
527547 .
0 commit comments