diff options
author | Dmitry Ivankov <divanorama@gmail.com> | 2011-08-17 16:42:58 +0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-08-17 16:51:49 -0700 |
commit | 3beb4fc461e72f0b93ae233dcc1cece0046b8eb8 (patch) | |
tree | 40ae0a41494d07eec9b068b2066c15a3a8a644a7 /Documentation/git-fast-import.txt | |
parent | d28790dc31ca1bcdca7254a6b9381b6c84e91271 (diff) | |
download | git-3beb4fc461e72f0b93ae233dcc1cece0046b8eb8.tar.gz |
doc/fast-import: document feature import-marks-if-exists
fast-import command-line option --import-marks-if-exists was introduced
in commit dded4f1 (fast-import: Introduce --import-marks-if-exists, 2011-01-15)
--import-marks option can be set via a "feature" command in a fast-import
stream and --import-marks-if-exists had support for such specification
from the very beginning too due to some shared codebase. Though the
documentation for this feature wasn't written in dded4f1.
Add the documentation for "feature import-marks-if-exists=<file>". Also add
a minimalistic test for it.
Signed-off-by: Dmitry Ivankov <divanorama@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-fast-import.txt')
-rw-r--r-- | Documentation/git-fast-import.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Documentation/git-fast-import.txt b/Documentation/git-fast-import.txt index 249249aac7..605ab9eea5 100644 --- a/Documentation/git-fast-import.txt +++ b/Documentation/git-fast-import.txt @@ -995,10 +995,14 @@ force:: (see OPTIONS, above). import-marks:: +import-marks-if-exists:: Like --import-marks except in two respects: first, only one - "feature import-marks" command is allowed per stream; - second, an --import-marks= command-line option overrides - any "feature import-marks" command in the stream. + "feature import-marks" or "feature import-marks-if-exists" + command is allowed per stream; second, an --import-marks= + or --import-marks-if-exists command-line option overrides + any of these "feature" commands in the stream; third, + "feature import-marks-if-exists" like a corresponding + command-line option silently skips a nonexistent file. cat-blob:: ls:: |