Jonathan Nieder  committed 68595cd

fast-import: clarify documentation of "feature" command

The "feature" command allows streams to specify options for the import
that must not be ignored. Logically, they are part of the stream,
even though technically most supported features are synonyms to
command-line options.

Make this more obvious by being more explicit about how the analogy
between most "feature" commands and command-line options works. Treat
the feature (import-marks) that does not fit this analogy separately.

Signed-off-by: Jonathan Nieder <>
Acked-by: Sverre Rabbelier <>
Signed-off-by: Junio C Hamano <>
Signed-off-by: Jonathan Nieder <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits fc7642a
  • Branches master

Comments (0)

Files changed (1)

File Documentation/git-fast-import.txt

 it does not.
-	'feature' SP <feature> LF
+	'feature' SP <feature> ('=' <argument>)? LF
-The <feature> part of the command may be any string matching
-^[a-zA-Z][a-zA-Z-]*$ and should be understood by fast-import.
-Feature work identical as their option counterparts with the
-exception of the import-marks feature, see below.
-The following features are currently supported:
-* date-format
-* import-marks
-* export-marks
-* relative-marks
-* no-relative-marks
-* force
-The import-marks behaves differently from when it is specified as
-commandline option in that only one "feature import-marks" is allowed
-per stream. Also, any --import-marks= specified on the commandline
-will override those from the stream (if any).
+The <feature> part of the command may be any one of the following:
+	Act as though the corresponding command-line option with
+	a leading '--' was passed on the command line
+	(see OPTIONS, above).
+	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.