Code

Merge branch 'maint-1.7.0' into maint
authorJunio C Hamano <gitster@pobox.com>
Thu, 10 Feb 2011 00:40:12 +0000 (16:40 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 10 Feb 2011 00:40:12 +0000 (16:40 -0800)
* maint-1.7.0:
  fast-import: introduce "feature notes" command
  fast-import: clarify documentation of "feature" command

Conflicts:
Documentation/git-fast-import.txt

Documentation/git-fast-import.txt
fast-import.c
t/t9301-fast-import-notes.sh

index 4415e636352ea88f34a798b6c29dc5e34d60d868..02bb49886cc5f8415cec8786282681b4114a6380 100644 (file)
@@ -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
index 60f26fe473ad6922166e952f4f7e5be2b79d45de..970d8470ed7c350337f28570fd2c111186a7941d 100644 (file)
@@ -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;
        }
index 7cf8cd8a2fed2191b31082c92a95598a3e06513d..463254c72734beaf74948b6c424367ef4fea9d1a 100755 (executable)
@@ -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