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

Function same_encoding

utf8.c:442–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442int same_encoding(const char *src, const char *dst)
443{
444 static const char utf8[] = "UTF-8";
445
446 if (!src)
447 src = utf8;
448 if (!dst)
449 dst = utf8;
450 if (same_utf_encoding(src, dst))
451 return 1;
452 return !strcasecmp(src, dst);
453}
454
455/*
456 * Wrapper for fprintf and returns the total number of columns required

Callers 6

repo_logmsg_reencodeFunction · 0.85
strbuf_reencodeFunction · 0.85
convert_to_utf8Function · 0.85
git_path_check_encodingFunction · 0.85
convert_to_utf8Function · 0.85

Calls 1

same_utf_encodingFunction · 0.85

Tested by

no test coverage detected