about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-19 08:14:42 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-19 08:16:34 +0000
commitbafd4084d8e78ef48205e6ce573f1bbe52a669a8 (patch)
tree8f749c01070fd65446849b480f582f9e3ba5015a
parent7a3a4b9d310876f68f4ba788afaef77ad15fc62b (diff)
downloadpublic-inbox-bafd4084d8e78ef48205e6ce573f1bbe52a669a8.tar.gz
In the future, we may store "purged" content IDs or other
uncommon stuff under "_/" of the git tree.  This keeps the
top-level tree small and more amenable to deltafication.
This helps the the common case where "m" is most commonly
changed file at the top level.

Also, use 'D' instead of 'd' since it matches git's '--raw'
output format.
-rw-r--r--lib/PublicInbox/Import.pm2
-rw-r--r--t/v2writable.t2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index 94a49fe6..6a640e23 100644
--- a/lib/PublicInbox/Import.pm
+++ b/lib/PublicInbox/Import.pm
@@ -208,7 +208,7 @@ sub remove {
         if (defined $path) {
                 print $w "D $path\n\n" or wfail;
         } else {
-                print $w "M 100644 :$blob d\n\n" or wfail;
+                print $w "M 100644 :$blob _/D\n\n" or wfail;
         }
         $self->{nchg}++;
         (($self->{tip} = ":$commit"), $cur);
diff --git a/t/v2writable.t b/t/v2writable.t
index a5c982e9..c6bcefd4 100644
--- a/t/v2writable.t
+++ b/t/v2writable.t
@@ -210,7 +210,7 @@ EOF
         is(scalar(@found), 0, 'no longer found in Xapian skeleton');
 
         my $after = $git0->qx(qw(log -1 --pretty=raw --raw -r --no-abbrev));
-        if ($after =~ m!( [a-f0-9]+ )A\td$!) {
+        if ($after =~ m!( [a-f0-9]+ )A\t_/D$!) {
                 my $oid = $1;
                 ok(index($before, $oid) > 0, 'no new blob introduced');
         } else {