summaryrefslogtreecommitdiff
path: root/builtin/init-db.c
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2020-02-22 20:17:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-02-28 17:53:41 (GMT)
commitd9db599ca85b008faedc1d5e771e28b6fb648c4e (patch)
treeddf59df0ecac306b2c8d24d934b18796fa32667b /builtin/init-db.c
parent11d8ef3ee7ab8cfe56a4276ea4b62794d23293e3 (diff)
downloadgit-d9db599ca85b008faedc1d5e771e28b6fb648c4e.zip
git-d9db599ca85b008faedc1d5e771e28b6fb648c4e.tar.gz
git-d9db599ca85b008faedc1d5e771e28b6fb648c4e.tar.bz2
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>
Diffstat (limited to 'builtin/init-db.c')
0 files changed, 0 insertions, 0 deletions