refs: add methods to init refs db
commit6fb5acfd8f7102f53dedc887233313f233a65932
authorDavid Turner <dturner@twopensource.com>
Sun, 4 Sep 2016 16:08:41 +0000 (4 18:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 9 Sep 2016 22:28:14 +0000 (9 15:28 -0700)
tree0e7bfa8bb9bff754e05680d9ab913f9fd0c310c0
parenta27dcf89b6867577bb714e181dd181cd1a1e6512
refs: add methods to init refs db

Alternate refs backends might not need the refs/heads directory and so
on, so we make ref db initialization part of the backend.

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>
builtin/init-db.c
refs.c
refs.h
refs/files-backend.c
refs/refs-internal.h