Skip to content

Commit a8e4a59

Browse files
committed
Merge branch 'maint-1.7.0' into maint
* maint-1.7.0: fast-import: introduce "feature notes" command fast-import: clarify documentation of "feature" command Conflicts: Documentation/git-fast-import.txt
2 parents 59ab4eb + 547e8b9 commit a8e4a59

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

Documentation/git-fast-import.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,13 @@ cat-blob::
948948
rather than wasting time on the early part of an import
949949
before the unsupported command is detected.
950950

951+
notes::
952+
Require that the backend support the 'notemodify' (N)
953+
subcommand to the 'commit' command.
954+
Versions of fast-import not supporting notes will exit
955+
with a message indicating so.
956+
957+
951958
`option`
952959
~~~~~~~~
953960
Processes the specified option so that git fast-import behaves in a

fast-import.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2991,6 +2991,8 @@ static int parse_one_feature(const char *feature, int from_stream)
29912991
relative_marks_paths = 0;
29922992
} else if (!prefixcmp(feature, "force")) {
29932993
force_update = 1;
2994+
} else if (!strcmp(feature, "notes")) {
2995+
; /* do nothing; we have the feature */
29942996
} else {
29952997
return 0;
29962998
}

t/t9301-fast-import-notes.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ test_expect_success 'add notes with simple M command' '
120120

121121
test_tick
122122
cat >input <<INPUT_END
123+
feature notes
123124
commit refs/notes/test
124125
committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
125126
data <<COMMIT

0 commit comments

Comments
 (0)