зеркало из https://github.com/microsoft/git.git
Documentation: s/seperator/separator/
Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
443b92b6e5
Коммит
c4431d380c
|
@ -451,7 +451,7 @@ in octal. Git only supports the following modes:
|
||||||
In both formats `<path>` is the complete path of the file to be added
|
In both formats `<path>` is the complete path of the file to be added
|
||||||
(if not already existing) or modified (if already existing).
|
(if not already existing) or modified (if already existing).
|
||||||
|
|
||||||
A `<path>` string must use UNIX-style directory seperators (forward
|
A `<path>` string must use UNIX-style directory separators (forward
|
||||||
slash `/`), may contain any byte other than `LF`, and must not
|
slash `/`), may contain any byte other than `LF`, and must not
|
||||||
start with double quote (`"`).
|
start with double quote (`"`).
|
||||||
|
|
||||||
|
@ -461,8 +461,8 @@ quoting should be used, e.g. `"path/with\n and \" in it"`.
|
||||||
The value of `<path>` must be in canoncial form. That is it must not:
|
The value of `<path>` must be in canoncial form. That is it must not:
|
||||||
|
|
||||||
* contain an empty directory component (e.g. `foo//bar` is invalid),
|
* contain an empty directory component (e.g. `foo//bar` is invalid),
|
||||||
* end with a directory seperator (e.g. `foo/` is invalid),
|
* end with a directory separator (e.g. `foo/` is invalid),
|
||||||
* start with a directory seperator (e.g. `/foo` is invalid),
|
* start with a directory separator (e.g. `/foo` is invalid),
|
||||||
* contain the special component `.` or `..` (e.g. `foo/./bar` and
|
* contain the special component `.` or `..` (e.g. `foo/./bar` and
|
||||||
`foo/../bar` are invalid).
|
`foo/../bar` are invalid).
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче