fast-import: Add support for importing commit notes
authorJohan Herland <johan@herland.net>
Fri, 9 Oct 2009 10:22:02 +0000 (12:22 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Oct 2009 02:00:24 +0000 (19:00 -0700)
commita8dd2e7d2bd7472b4e02b07aeef795de9c74f3e7
tree1bc009ab1b02f803e7d17710d3f62ee16d8cd6e0
parentd9246d4303f441c0e30614cd3a97a80fbe9354b6
fast-import: Add support for importing commit notes

Introduce a 'notemodify' subcommand of the 'commit' command. This subcommand
is similar to 'filemodify', except that no mode is supplied (all notes have
mode 0644), and the path is set to the hex SHA1 of the given "comittish".

This enables fast import of note objects along with their associated commits,
since the notes can now be named using the mark references of their
corresponding commits.

The patch also includes a test case of the added functionality.

Signed-off-by: Johan Herland <johan@herland.net>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fast-import.txt
fast-import.c
t/t9300-fast-import.sh