summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e7d06a4)
raw | patch | inline | side by side (parent: e7d06a4)
author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 6 Feb 2007 17:35:02 +0000 (12:35 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 6 Feb 2007 17:35:02 +0000 (12:35 -0500) |
Corrected a couple of header markup lines which were shorter than the
actual header, and made the `data` commands two formats into a named
list, which matches how we document the two formats of the `M` command
within a commit.
Also tried to simplify the language about our decimal integer format;
Linus pointed out I was probably being too specific at the cost of
reduced readability.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
actual header, and made the `data` commands two formats into a named
list, which matches how we document the two formats of the `M` command
within a commit.
Also tried to simplify the language about our decimal integer format;
Linus pointed out I was probably being too specific at the cost of
reduced readability.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Documentation/git-fast-import.txt | patch | blob | history |
index e204ea1b3ef60a2cc866b8eb54082dff08832f3d..6fc78bff3e5aa08a3dc133cd356966d5aba86724 100644 (file)
The time of the change is specified by `<time>` as the number of
seconds since the UNIX epoc (midnight, Jan 1, 1970, UTC) and is
-written in base-10 notation using US-ASCII digits. The committer's
+written as an ASCII decimal integer. The committer's
timezone is specified by `<tz>` as a positive or negative offset
from UTC. For example EST (which is typically 5 hours behind GMT)
would be expressed in `<tz>` by ``-0500'' while GMT is ``+0000''.
also accepted by `from` (see above).
`filemodify`
-^^^^^^^^^^
+^^^^^^^^^^^^
Included in a `commit` command to add a new file or change the
content of an existing file. This command has two different means
of specifying the content of the file.
It is recommended that `<path>` always be encoded using UTF-8.
-
`filedelete`
-^^^^^^^^^^
+^^^^^^^^^^^^
Included in a `commit` command to remove a file from the branch.
If the file removal makes its directory empty, the directory will
be automatically removed too. This cascades up the tree until the
....
where `<idnum>` is the number assigned by the frontend to this mark.
-The value of `<idnum>` is expressed in base 10 notation using
-US-ASCII digits. The value 0 is reserved and cannot be used as
+The value of `<idnum>` is expressed as an ASCII decimal integer.
+The value 0 is reserved and cannot be used as
a mark. Only values greater than or equal to 1 may be used as marks.
New marks are created automatically. Existing marks can be moved
exact byte count format, as it is more robust and performs better.
The delimited format is intended primarily for testing gfi.
-Exact byte count format:
-
+Exact byte count format::
+ The frontend must specify the number of bytes of data.
++
....
'data' SP <count> LF
<raw> LF
....
-
++
where `<count>` is the exact number of bytes appearing within
-`<raw>`. The value of `<count>` is expressed in base 10 notation
-using US-ASCII digits. The `LF` on either side of `<raw>` is not
+`<raw>`. The value of `<count>` is expressed as an ASCII decimal
+integer. The `LF` on either side of `<raw>` is not
included in `<count>` and will not be included in the imported data.
-Delimited format:
-
+Delimited format::
+ A delimiter string is used to mark the end of the data.
+ gfi will compute the length by searching for the delimiter.
+ This format is primarly useful for testing and is not
+ recommended for real data.
++
....
'data' SP '<<' <delim> LF
<raw> LF
<delim> LF
....
-
++
where `<delim>` is the chosen delimiter string. The string `<delim>`
must not appear on a line by itself within `<raw>`, as otherwise
gfi will think the data ends earlier than it really does. The `LF`