Code

Support gitlinks in fast-import.
authorAlexander Gavrilov <angavrilov@gmail.com>
Sat, 19 Jul 2008 12:21:24 +0000 (16:21 +0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 19 Jul 2008 18:25:51 +0000 (11:25 -0700)
commit03db4525d38119f7778d6e9117f27c47db8466d4
treeee8126cbb922debfe445a54658c5a57dca4cc3ca
parent4a3fedd5976ae9175cc418876d17ca568278b426
Support gitlinks in fast-import.

Currently fast-import/export cannot be used for
repositories with submodules. This patch extends
the relevant programs to make them correctly
process gitlinks.

Links can be represented by two forms of the
Modify command:

M 160000 SHA1 some/path

which sets the link target explicitly, or

M 160000 :mark some/path

where the mark refers to a commit. The latter
form can be used by importing tools to build
all submodules simultaneously in one physical
repository, and then simply fetch them apart.

Signed-off-by: Alexander Gavrilov <angavrilov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fast-import.txt
builtin-fast-export.c
fast-import.c
t/t9300-fast-import.sh
t/t9301-fast-export.sh