Skip to content

Commit fea6c47

Browse files
peffgitster
authored andcommitted
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 85f2510 (write_head_info(): handle "extra refs" locally, 2012-01-06). Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ab6eea6 commit fea6c47

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

builtin/receive-pack.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,7 @@ static int show_ref_cb(const char *path_full, const struct object_id *oid,
261261
/*
262262
* Advertise refs outside our current namespace as ".have"
263263
* refs, so that the client can use them to minimize data
264-
* transfer but will otherwise ignore them. This happens to
265-
* cover ".have" that are thrown in by add_one_alternate_ref()
266-
* to mark histories that are complete in our alternates as
267-
* well.
264+
* transfer but will otherwise ignore them.
268265
*/
269266
if (!path)
270267
path = ".have";

0 commit comments

Comments
 (0)