Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Junio C Hamano committed Feb 10, 2011
2 parents 59ab4eb + 547e8b9 commit a8e4a59
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Documentation/git-fast-import.txt
Expand Up @@ -948,6 +948,13 @@ cat-blob::
rather than wasting time on the early part of an import
before the unsupported command is detected.

notes::
Require that the backend support the 'notemodify' (N)
subcommand to the 'commit' command.
Versions of fast-import not supporting notes will exit
with a message indicating so.


`option`
~~~~~~~~
Processes the specified option so that git fast-import behaves in a
Expand Down
2 changes: 2 additions & 0 deletions fast-import.c
Expand Up @@ -2991,6 +2991,8 @@ static int parse_one_feature(const char *feature, int from_stream)
relative_marks_paths = 0;
} else if (!prefixcmp(feature, "force")) {
force_update = 1;
} else if (!strcmp(feature, "notes")) {
; /* do nothing; we have the feature */
} else {
return 0;
}
Expand Down
1 change: 1 addition & 0 deletions t/t9301-fast-import-notes.sh
Expand Up @@ -120,6 +120,7 @@ test_expect_success 'add notes with simple M command' '

test_tick
cat >input <<INPUT_END
feature notes
commit refs/notes/test
committer $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE
data <<COMMIT
Expand Down

0 comments on commit a8e4a59

Please sign in to comment.