author | Alexander Gavrilov <angavrilov@gmail.com> | |
Sat, 19 Jul 2008 12:21:24 +0000 (16:21 +0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 19 Jul 2008 18:25:51 +0000 (11:25 -0700) | ||
commit | 03db4525d38119f7778d6e9117f27c47db8466d4 | |
tree | ee8126cbb922debfe445a54658c5a57dca4cc3ca | tree | snapshot |
parent | 4a3fedd5976ae9175cc418876d17ca568278b426 | commit | diff |
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>
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>