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

Function git_path_check_crlf

convert.c:1269–1284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1267}
1268
1269static enum convert_crlf_action git_path_check_crlf(struct attr_check_item *check)
1270{
1271 const char *value = check->value;
1272
1273 if (ATTR_TRUE(value))
1274 return CRLF_TEXT;
1275 else if (ATTR_FALSE(value))
1276 return CRLF_BINARY;
1277 else if (ATTR_UNSET(value))
1278 ;
1279 else if (!strcmp(value, "input"))
1280 return CRLF_TEXT_INPUT;
1281 else if (!strcmp(value, "auto"))
1282 return CRLF_AUTO;
1283 return CRLF_UNDEFINED;
1284}
1285
1286static enum eol git_path_check_eol(struct attr_check_item *check)
1287{

Callers 1

convert_attrsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected