diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2017-02-10 14:16:18 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-02-10 22:13:26 +0300 |
commit | 9c7d772b6b716ec5f81afd3922340588985066b8 (patch) | |
tree | b150a444f4e79ca384f1bbbea1320ad998074a79 /refs/refs-internal.h | |
parent | fbfd0a291596a698773d3f687af3ab4c36a841bf (diff) |
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