]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
fast-import: add a get-mark command
authorMichael Haggerty <mhagger@alum.mit.edu>
Wed, 1 Jul 2015 15:05:58 +0000 (17:05 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Jul 2015 16:29:59 +0000 (09:29 -0700)
commit28c7b1f7b7b70013c2f380c2d720d0c918d3d83a
tree29c3eac7402f612bb43573b987a036315cdbec2d
parent3d4a3ffe64162b45ae7c991fc60623ecb4678cfd
fast-import: add a get-mark command

It is sometimes useful for importers to be able to read the SHA-1
corresponding to a mark that they have created via fast-import. For
example, they might want to embed the SHA-1 into the commit message of
a later commit. Or it might be useful for internal bookkeeping uses,
or for logging.

Add a "get-mark" command to "git fast-import" that allows the importer
to ask for the value of a mark that has been created earlier.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-fast-import.txt
fast-import.c
t/t9300-fast-import.sh