Code

fast-import: Allow cat-blob requests at arbitrary points in stream
authorJonathan Nieder <jrnieder@gmail.com>
Sun, 28 Nov 2010 19:45:58 +0000 (13:45 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Dec 2010 21:28:04 +0000 (13:28 -0800)
commit777f80d7429b0f2687cb9ff40f82b196b78384ff
tree76da0afc4d9f0cddd9f5f6a1085c4c0aeda0b718
parent85c62395b152f99e8867aaf84cea93dddc03243c
fast-import: Allow cat-blob requests at arbitrary points in stream

The new rule: a "cat-blob" can be inserted wherever a comment is
allowed, which means at the start of any line except in the middle of
a "data" command.

This saves frontends from having to loop over everything they want to
commit in the next commit and cat-ing the necessary objects in
advance.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: David Barr <david.barr@cordelta.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fast-import.txt
fast-import.c
t/t9300-fast-import.sh