From: Michael Haggerty Date: Mon, 15 Jan 2018 12:17:33 GMT Subject: [PATCH 1/3] SQUASH? Mention that `snapshot::buf` can be NULL for empty files Message-ID: <131281e13bd6c25246e0e0ab263fc9a2f364d6e0.1516017331.git.mhagger@alum.mit.edu> In-Reply-To: <20180114191416.2368-1-kgybels@infogroep.be> Signed-off-by: Michael Haggerty --- refs/packed-backend.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/refs/packed-backend.c b/refs/packed-backend.c index 01a13cb817..f20f05b4df 100644 --- a/refs/packed-backend.c +++ b/refs/packed-backend.c @@ -69,11 +69,11 @@ struct snapshot { /* * The contents of the `packed-refs` file. If the file was - * already sorted, this points at the mmapped contents of the - * file. If not, this points at heap-allocated memory - * containing the contents, sorted. If there were no contents - * (e.g., because the file didn't exist), `buf` and `eof` are - * both NULL. + * already sorted and if mmapping is allowed, this points at + * the mmapped contents of the file. If not, this points at + * heap-allocated memory containing the contents, sorted. If + * there were no contents (e.g., because the file didn't exist + * or was empty), `buf` and `eof` are both NULL. */ char *buf, *eof; -- 2.14.2