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

Function diff_index_show_file

diff-lib.c:304–313  ·  view source on GitHub ↗

A file entry went away or appeared */

Source from the content-addressed store, hash-verified

302
303/* A file entry went away or appeared */
304static void diff_index_show_file(struct rev_info *revs,
305 const char *prefix,
306 const struct cache_entry *ce,
307 const struct object_id *oid, int oid_valid,
308 unsigned int mode,
309 unsigned dirty_submodule)
310{
311 diff_addremove(&revs->diffopt, prefix[0], mode,
312 oid, oid_valid, ce->name, dirty_submodule);
313}
314
315static int get_stat_data(const struct cache_entry *ce,
316 const struct object_id **oidp,

Callers 3

show_new_fileFunction · 0.85
show_modifiedFunction · 0.85
do_oneway_diffFunction · 0.85

Calls 1

diff_addremoveFunction · 0.85

Tested by

no test coverage detected