| 1 | 2 git ls-tree --name-only -r refs/notes/many_notes | |
| 2 | 3 while read path |
| 3 | 4 do |
| 4 | 5 test "$path" = "foobar/non-note.txt" && continue |
| 5 | 6 test "$path" = "deadbeef" && continue |
| 6 | 7 test "$path" = "de/adbeef" && continue |
| 7 | 8 |
| 8 | 9 if test $(expr length "$path") -ne $hexsz |
| 9 | 10 then |
| 10 | 11 return 1 |
| 11 | 12 fi |
| 12 | 13 done |