MCPcopy Index your code
hub / github.com/git/git / strintmap_get

Function strintmap_get

strmap.h:185–191  ·  view source on GitHub ↗

* Returns the value for str in the map. If str isn't found in the map, * the map's default_value is returned. */

Source from the content-addressed store, hash-verified

183 * the map's default_value is returned.
184 */
185static inline int strintmap_get(struct strintmap *map, const char *str)
186{
187 struct strmap_entry *result = strmap_get_entry(&map->map, str);
188 if (!result)
189 return map->default_value;
190 return (intptr_t)result->value;
191}
192
193static inline void strintmap_set(struct strintmap *map, const char *str,
194 intptr_t v)

Callers 10

set_comment_key_flagsFunction · 0.85
get_comment_key_flagsFunction · 0.85
possibly_cache_new_pairFunction · 0.85
locate_rename_dstFunction · 0.85
update_dir_rename_countsFunction · 0.85
cleanup_dir_rename_infoFunction · 0.85
idx_possible_renameFunction · 0.85
basename_prefetchFunction · 0.85
find_basename_matchesFunction · 0.85

Calls 1

strmap_get_entryFunction · 0.85

Tested by

no test coverage detected