summaryrefslogtreecommitdiff
path: root/builtin/receive-pack.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-02-08 20:53:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-02-08 23:39:55 (GMT)
commitfea6c47f2f106c3617eaf52f973a1a07629ebf46 (patch)
treebf3e34855b557166320bf25dc9a582095f819b7c /builtin/receive-pack.c
parentab6eea6f7b9a5289d72c05476da19ab2bb457fd3 (diff)
downloadgit-fea6c47f2f106c3617eaf52f973a1a07629ebf46.zip
git-fea6c47f2f106c3617eaf52f973a1a07629ebf46.tar.gz
git-fea6c47f2f106c3617eaf52f973a1a07629ebf46.tar.bz2
receive-pack: fix misleading namespace/.have comment
The comment claims that we handle alternate ".have" lines through this function, but that hasn't been the case since 85f251045 (write_head_info(): handle "extra refs" locally, 2012-01-06). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/receive-pack.c')
-rw-r--r--builtin/receive-pack.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index a4926fc..1821ad5 100644
--- a/builtin/receive-pack.c
+++ b/builtin/receive-pack.c
@@ -261,10 +261,7 @@ static int show_ref_cb(const char *path_full, const struct object_id *oid,
/*
* Advertise refs outside our current namespace as ".have"
* refs, so that the client can use them to minimize data
- * transfer but will otherwise ignore them. This happens to
- * cover ".have" that are thrown in by add_one_alternate_ref()
- * to mark histories that are complete in our alternates as
- * well.
+ * transfer but will otherwise ignore them.
*/
if (!path)
path = ".have";