git-commit-vandalism/refs
Nguyễn Thái Ngọc Duy 2f40e95472 files-backend: avoid ref api targeting main ref store
A small step towards making files-backend work as a non-main ref store
using the newly added store-aware API.

For the record, `join` and `nm` on refs.o and files-backend.o tell me
that files-backend no longer uses functions that default to
get_main_ref_store().

I'm not yet comfortable at the idea of removing
files_assert_main_repository() (or converting REF_STORE_MAIN to
REF_STORE_WRITE). More staring and testing is required before that can
happen. Well, except peel_ref(). I'm pretty sure that function is safe.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2017-04-14 03:53:25 -07:00
..
files-backend.c files-backend: avoid ref api targeting main ref store 2017-04-14 03:53:25 -07:00
iterator.c do_for_each_ref(): reimplement using reference iteration 2016-06-20 11:38:20 -07:00
refs-internal.h refs: new transaction related ref-store api 2017-04-14 03:53:25 -07:00