Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'ak/use-hashmap-iter-first-in-submodule-config'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 13 Apr 2016 21:12:29 +0000
(14:12 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 13 Apr 2016 21:12:29 +0000
(14:12 -0700)
Minor code cleanup.
* ak/use-hashmap-iter-first-in-submodule-config:
submodule-config: use hashmap_iter_first()
submodule-config.c
patch
|
blob
|
history
raw
(from parent 1:
907c416
)
diff --git
a/submodule-config.c
b/submodule-config.c
index b82d1fbb22efd4c7279edd05955c38ba8df5311b..8ac5031ade2e71b2ac1a70a9130b3eef25eebc35 100644
(file)
--- a/
submodule-config.c
+++ b/
submodule-config.c
@@
-405,8
+405,7
@@
static const struct submodule *config_from(struct submodule_cache *cache,
struct hashmap_iter iter;
struct submodule_entry *entry;
- hashmap_iter_init(&cache->for_name, &iter);
- entry = hashmap_iter_next(&iter);
+ entry = hashmap_iter_first(&cache->for_name, &iter);
if (!entry)
return NULL;
return entry->config;