Skip to content

A Rust tool to reconstruct git history from tarball dumps. This is especially useful when a device vendor bases its code on an unknown commit of the git of a system on a chip vendor.

Notifications You must be signed in to change notification settings

Byron/git-reconstruct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An implementation inspired by https://framagit.org/GNUtoo/reconstruct-git-history and by https://github.com/ali1234/gitxref.

Many thanks to https://github.com/ali1234 who motivated me a lot!

Compile and use:

# Be sure it's at least Rust 1.26 
cargo build --release

Now run it like this:

echo dc595f7f016a0cff8b176a4c1e67483986f14816 | git-reconstructs <path-to-repo>

Usage

Pipe one hex-sha per line to stdin, and get space-separated hex-shas of all commits that use them, followed by newline.

Limitations

  • it only reads commits reachable from the HEAD of the repository. This can easily be fixed by adding more targets to the Revwalk instance.

About

A Rust tool to reconstruct git history from tarball dumps. This is especially useful when a device vendor bases its code on an unknown commit of the git of a system on a chip vendor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published