]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
fast-import: allow tags to be identified by mark labels
authorElijah Newren <newren@gmail.com>
Thu, 3 Oct 2019 20:27:04 +0000 (13:27 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Oct 2019 22:33:21 +0000 (07:33 +0900)
commitf73b2aba05788208ccd9b48f350b90cbfe57e1c4
treea82fc54fb135a3945bc1e3ad347ea14644bec822
parent3164e6bd24ead3598dcf9374077f87167b796c93
fast-import: allow tags to be identified by mark labels

Mark identifiers are used in fast-export and fast-import to provide a
label to refer to earlier content.  Blobs are given labels because they
need to be referenced in the commits where they first appear with a
given filename, and commits are given labels because they can be the
parents of other commits.  Tags were never given labels, probably
because they were viewed as unnecessary, but that presents two problems:

   1. It leaves us without a way of referring to previous tags if we
      want to create a tag of a tag (or higher nestings).
   2. It leaves us with no way of recording that a tag has already been
      imported when using --export-marks and --import-marks.

Fix these problems by allowing an optional mark label for tags.

Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fast-import.txt
fast-import.c
t/t9300-fast-import.sh