path: root/contrib/fast-import
AgeCommit message (Collapse)Author
2007-02-21Use gunzip -c over gzcat in import-tars example.Michael Loeffler
Not everyone has gzcat or bzcat installed on their system, but gunzip -c and bunzip2 -c perform the same task and are available if the user has installed gzip support or bzip2 support. Signed-off-by: Michael Loeffler <> Signed-off-by: Shawn O. Pearce <>
2007-02-12import-tars: brown paper bag fix for file mode.Michael Loeffler
There is a bug with this $git_mode variable which should be 0644 or 0755, but nothing else I think. Signed-off-by: Michael Loeffler <> Signed-off-by: Shawn O. Pearce <>
2007-02-08tar archive frontend for fast-import.Shawn O. Pearce
This is an example fast-import frontend, in less than 100 lines of Perl. It accepts one or more tar archives on the command line, passes them through gzcat/bzcat/zcat if necessary, parses out the individual file headers and feeds all contained data to fast-import. No temporary files are involved. Each tar is treated as one commit, with the commit timestamp coming from the oldest file modification date found within the tar. Each tar is also tagged with an annotated tag, using the basename of the tar file as the name of the tag. Currently symbolic links and hard links are not handled by the importer. The file checksums are also not verified. Signed-off-by: Shawn O. Pearce <>