]> git.ipfire.org Git - thirdparty/git.git/commit - refs/refs-internal.h
refs: implement iteration over only per-worktree refs
authorDavid Turner <dturner@twopensource.com>
Sun, 4 Sep 2016 16:08:44 +0000 (18:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Sep 2016 22:28:14 +0000 (15:28 -0700)
commit0c09ec07d1e617be5f2d7b5c937b60e77a30ede2
treef069f2a0fd432529018dd7747baea8475236097e
parent7d618264394a17e6ecd83d9412ac9ddb4609a2e5
refs: implement iteration over only per-worktree refs

Alternate refs backends might still use files to store per-worktree
refs. So provide a way to iterate over only the per-worktree references
in a ref_store. The other backend can set up a files ref_store and
iterate using the new DO_FOR_EACH_PER_WORKTREE_ONLY flag when iterating.

Signed-off-by: David Turner <dturner@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
refs/files-backend.c
refs/refs-internal.h