diff options
author | Eric Wong <e@80x24.org> | 2019-10-07 01:30:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-07 03:20:12 +0200 |
commit | e2b5038d8793a1d1f92b62dab82acc0d6b7dbcb7 (patch) | |
tree | 976db498f6351b16a1b93574315efdb55d0a810d /builtin/fetch.c | |
parent | hashmap: remove type arg from hashmap_{get,put,remove}_entry (diff) | |
download | git-e2b5038d8793a1d1f92b62dab82acc0d6b7dbcb7.tar.xz git-e2b5038d8793a1d1f92b62dab82acc0d6b7dbcb7.zip |
hashmap_entry: remove first member requirement from docs
Comments stating that "struct hashmap_entry" must be the first
member in a struct are no longer valid.
Suggested-by: Phillip Wood <phillip.wood123@gmail.com>
Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r-- | builtin/fetch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c index 09f7170616..a3154a4edb 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -251,7 +251,7 @@ static int will_fetch(struct ref **head, const unsigned char *sha1) } struct refname_hash_entry { - struct hashmap_entry ent; /* must be the first member */ + struct hashmap_entry ent; struct object_id oid; int ignore; char refname[FLEX_ARRAY]; |