Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-01-18 21:14:27 +0300
committerShawn O. Pearce <spearce@spearce.org>2007-01-18 21:25:37 +0300
commit3b4dce02752d37c3cef9308eefb01ed758efe323 (patch)
tree9ff8ee1643c6527fa03601bd5868da1e955acd18 /t
parente5808826c4abe183b4db9bae8f13445624696f66 (diff)
Support delimited data regions in fast-import.
During testing its nice to not have to feed the length of a data chunk to the 'data' command of fast-import. Instead we would prefer to be able to establish a data chunk much like shell's << operator and use a line delimiter to denote the end of the input. So now if a data command is started as 'data <<EOF' we will look for a terminator line containing only the string EOF on that line. Once found, we stop the data command. Everything between the two lines is used as the data value. The 'data <<' syntax is slower than 'data n', as we don't know how many bytes to expect and instead must grow our buffer on the fly. It also has the problem that the frontend must use a string which will not appear on a line by itself in the input, and the data region will always end in an LF. For these reasons real import frontends are encouraged to continue to use _only_ 'data n'. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions