>>>>> "JK" == Jeff King <peff@xxxxxxxx> writes: JK> AFAIK, there is no tool to try salvaging strings from an incomplete pack JK> (and you can't just run "strings" because the deltas are zlib JK> compressed). So if I were in the police forensics department, I think I JK> would read Documentation/technical/pack-format.txt and start hacking a JK> solution as quickly as possible. Hogwash. Patch follows. Maybe even better methods are available. Signed-off-by: jidanni <jidanni@xxxxxxxxxxx> --- Documentation/git-bundle.txt | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/Documentation/git-bundle.txt b/Documentation/git-bundle.txt index 1b66ab7..80248f5 100644 --- a/Documentation/git-bundle.txt +++ b/Documentation/git-bundle.txt @@ -164,6 +164,28 @@ $ git pull bundle would treat it as if it is talking with a remote side over the network. +DUMPING CONTENTS OF ANY BUNDLE +----------------------- + +Even if we cannot unbundle a bundle, + +------------ +$ git init +$ git bundle unbundle mybundle.bun +error: Repository lacks these prerequisite commits... +------------ + +We can still examine all the data contained within, + +------------ +$ sed '/^PACK/,$!d' mybundle.bun > mybundle.pack +$ git unpack-objects < mybundle.pack +$ cd .git/objects +$ ls ??/*|tr -d /|git cat-file --batch-check +$ ls ??/*|tr -d /|git cat-file --batch +------------ + + Author ------ Written by Mark Levedahl <mdl123@xxxxxxxxxxx> -- 1.6.0.6 -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html