diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-02-10 12:16:18 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-10 11:13:26 -0800 |
commit | 9c7d772b6b716ec5f81afd3922340588985066b8 (patch) | |
tree | b150a444f4e79ca384f1bbbea1320ad998074a79 /refs/refs-internal.h | |
parent | base_ref_store_init(): remove submodule argument (diff) | |
download | tgif-9c7d772b6b716ec5f81afd3922340588985066b8.tar.xz |
files_ref_store::submodule: use NULL for the main repository
The old practice of storing the empty string in this member for the main
repository was a holdover from before 00eebe3 (refs: create a base class
"ref_store" for files_ref_store, 2016-09-04), when the submodule was
stored in a flex array at the end of `struct files_ref_store`. Storing
NULL for this case is more idiomatic and a tiny bit less code.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'refs/refs-internal.h')
0 files changed, 0 insertions, 0 deletions