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 $ tree
914 .
5257 $ josh-filter -- reverse -p : [: empty,:/ a]
5358 : prefix= a
5459 $ FILTER_HASH= $ (josh-filter -i : [x = :/ a:/ b:/ d,y= :/ a:/ c:/ d])
60+ $ josh-filter -p $ {FILTER_HASH}
61+ :/ a: [
62+ x = : /b /d
63+ y = : /c /d
64+ ]
5565 $ git read-tree -- reset -u $ {FILTER_HASH}
5666 $ tree
5767 .
@@ -411,6 +421,8 @@ Test File filter tree representations
411421
412422Test ::file. txt (single argument, no trailing slash, no = , no * )
413423 $ FILTER_HASH= $ (josh-filter -i ::file. txt)
424+ $ josh-filter -p $ {FILTER_HASH}
425+ ::file. txt
414426 $ git read-tree -- reset -u $ {FILTER_HASH}
415427 $ tree
416428 .
@@ -439,6 +451,8 @@ Test ::file.txt (single argument, no trailing slash, no =, no *)
439451
440452Test ::dest. txt= src. txt (with = , destination= source)
441453 $ FILTER_HASH= $ (josh-filter -i ::dest. txt= src. txt)
454+ $ josh-filter -p $ {FILTER_HASH}
455+ ::dest. txt= src. txt
442456 $ git read-tree -- reset -u $ {FILTER_HASH}
443457 $ tree
444458 .
@@ -467,6 +481,8 @@ Test ::dest.txt=src.txt (with =, destination=source)
467481
468482Test ::*. txt (with * , pattern)
469483 $ FILTER_HASH= $ (josh-filter -i ::*. txt)
484+ $ josh-filter -p $ {FILTER_HASH}
485+ ::*. txt
470486 $ git read-tree -- reset -u $ {FILTER_HASH}
471487 $ tree
472488 .
@@ -486,6 +502,8 @@ Test ::*.txt (with *, pattern)
486502
487503Test ::dir/ (with trailing slash, directory)
488504 $ FILTER_HASH= $ (josh-filter -i ::dir/ )
505+ $ josh-filter -p $ {FILTER_HASH}
506+ ::dir/
489507 $ git read-tree -- reset -u $ {FILTER_HASH}
490508 $ tree
491509 .
@@ -518,6 +536,8 @@ Test ::dir/ (with trailing slash, directory)
518536
519537Test ::a/ b/ c/ (nested directory path with trailing slash)
520538 $ FILTER_HASH= $ (josh-filter -i ::a/ b/ c/ )
539+ $ josh-filter -p $ {FILTER_HASH}
540+ ::a/ b/ c/
521541 $ git read-tree -- reset -u $ {FILTER_HASH}
522542 $ tree
523543 .
0 commit comments