MCPcopy Create free account
hub / github.com/git/git / prepare_entry

Function prepare_entry

diff.c:1041–1050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1039}
1040
1041static void prepare_entry(struct diff_options *o, struct emitted_diff_symbol *l,
1042 struct interned_diff_symbol *s)
1043{
1044 unsigned flags = o->color_moved_ws_handling & XDF_WHITESPACE_FLAGS;
1045 unsigned int hash = xdiff_hash_string(l->line + l->indent_off,
1046 l->len - l->indent_off, flags);
1047
1048 hashmap_entry_init(&s->ent, hash);
1049 s->es = l;
1050}
1051
1052struct moved_entry_list {
1053 struct moved_entry *add, *del;

Callers 1

Calls 2

xdiff_hash_stringFunction · 0.85
hashmap_entry_initFunction · 0.85

Tested by

no test coverage detected