Jeff King <peff@xxxxxxxx> wrote: > contrib: add simple fast-import example > > This example just puts a directory under git control. It is > a bit slower than using git tools directly, but hopefully > shows a bit how fast-import works. > --- > contrib/fast-import/git-import.perl | 64 +++++++++++++++++++++++++++++++++++ > 1 files changed, 64 insertions(+), 0 deletions(-) > create mode 100755 contrib/fast-import/git-import.perl ... > + my @st = stat($in) > + or die "unable to stat $fn: $!"; > + my $len = $st[7]; > + > + print $fi "M 100644 inline $fn\n"; fast-import will also accept the shorter (perhaps more common) form: print $fi "M 644 inline $fn\n"; > + print $fi "data $st[7]\n"; This might be more clear as: print $fi "data $len\n"; -- Shawn. - 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