@@ -245,13 +245,13 @@ static int load_attr_file(
245245 struct stat st ;
246246
247247 if (p_stat (filename , & st ) < 0 )
248- return GIT_NOTFOUND ;
248+ return GIT_ENOTFOUND ;
249249
250250 if (sig != NULL &&
251251 (git_time_t )st .st_mtime == sig -> seconds &&
252252 (git_off_t )st .st_size == sig -> size &&
253253 (unsigned int )st .st_ino == sig -> ino )
254- return GIT_NOTFOUND ;
254+ return GIT_ENOTFOUND ;
255255
256256 error = git_futils_readbuffer_updated (& content , filename , NULL , NULL );
257257 if (error < 0 )
@@ -286,7 +286,7 @@ static int load_attr_blob_from_index(
286286 entry = git_index_get (index , error );
287287
288288 if (old_oid && git_oid_cmp (old_oid , & entry -> oid ) == 0 )
289- return GIT_NOTFOUND ;
289+ return GIT_ENOTFOUND ;
290290
291291 if ((error = git_blob_lookup (blob , repo , & entry -> oid )) < 0 )
292292 return error ;
@@ -396,7 +396,7 @@ int git_attr_cache__push_file(
396396
397397 if (error ) {
398398 /* not finding a file is not an error for this function */
399- if (error == GIT_NOTFOUND ) {
399+ if (error == GIT_ENOTFOUND ) {
400400 giterr_clear ();
401401 error = 0 ;
402402 }
@@ -550,7 +550,7 @@ static int collect_attr_files(
550550 error = git_futils_find_system_file (& dir , GIT_ATTR_FILE_SYSTEM );
551551 if (!error )
552552 error = push_attr_file (repo , files , NULL , dir .ptr );
553- else if (error == GIT_NOTFOUND )
553+ else if (error == GIT_ENOTFOUND )
554554 error = 0 ;
555555 }
556556
@@ -577,11 +577,11 @@ int git_attr_cache__init(git_repository *repo)
577577 return -1 ;
578578
579579 ret = git_config_get_string (& cache -> cfg_attr_file , cfg , GIT_ATTR_CONFIG );
580- if (ret < 0 && ret != GIT_NOTFOUND )
580+ if (ret < 0 && ret != GIT_ENOTFOUND )
581581 return ret ;
582582
583583 ret = git_config_get_string (& cache -> cfg_excl_file , cfg , GIT_IGNORE_CONFIG );
584- if (ret < 0 && ret != GIT_NOTFOUND )
584+ if (ret < 0 && ret != GIT_ENOTFOUND )
585585 return ret ;
586586
587587 giterr_clear ();
0 commit comments