]> git.ipfire.org Git - thirdparty/git.git/commit - fast-import.c
fast-import: add a generic function to iterate over marks
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 22 Feb 2020 20:17:48 +0000 (20:17 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 28 Feb 2020 17:53:41 +0000 (09:53 -0800)
commitd9db599ca85b008faedc1d5e771e28b6fb648c4e
treeddf59df0ecac306b2c8d24d934b18796fa32667b
parent11d8ef3ee7ab8cfe56a4276ea4b62794d23293e3
fast-import: add a generic function to iterate over marks

Currently, we can iterate over marks only to dump them to a file. In the
future, we'll want to perform an arbitrary operation over the items of a
mark set. Add a function, for_each_mark, that iterates over marks in a
set and performs an arbitrary callback function for each mark. Switch
the mark dumping routine to use this function now that it's available.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c