]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
CL/git: add format version 1
[notmuch] / test / test-lib.sh
index 4eb58ea0a29a4e8c08ec6869b479d5e07588967a..e9f32582e38e99c32c0eb04b59d5725b7ed5d034 100644 (file)
@@ -559,6 +559,10 @@ notmuch_date_sanitize () {
        -e 's/^Date: Fri, 05 Jan 2001 .*0000/Date: GENERATED_DATE/'
 }
 
+# remove redundant parts of notmuch-git internal paths
+notmuch_git_sanitize () {
+    sed  -e 's,tags/\([0-9a-f]\{2\}/\)\{2\},,' -e '/FORMAT/d'
+}
 notmuch_uuid_sanitize () {
     sed 's/[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/UUID/g'
 }