From bafd4084d8e78ef48205e6ce573f1bbe52a669a8 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Mon, 19 Mar 2018 08:14:42 +0000 Subject: import: (v2): write deletes to a separate '_' subdirectory 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. --- lib/PublicInbox/Import.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/Import.pm') 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); -- cgit v1.2.3-24-ge0c7