Ayush Chandekar <ayu.chandekar@xxxxxxxxx> writes: [snip] > diff --git a/repo-settings.h b/repo-settings.h > index ddc11967e0..58dadd9dae 100644 > --- a/repo-settings.h > +++ b/repo-settings.h > @@ -66,6 +66,7 @@ struct repo_settings { > size_t packed_git_limit; > > char *hooks_path; > + char *git_attributes_file; > }; > #define REPO_SETTINGS_INIT { \ > .shared_repository = -1, \ > @@ -92,5 +93,7 @@ const char *repo_settings_get_hooks_path(struct repository *repo); > int repo_settings_get_shared_repository(struct repository *repo); > void repo_settings_set_shared_repository(struct repository *repo, int value); > void repo_settings_reset_shared_repository(struct repository *repo); > +/* Read the value for "core.attributesfile". */ Nit: Shouldn't we also mention that we default to `xdg_config_home("attributes")` if the 'core.attributesfile' value isn't available? > +const char *repo_settings_get_attributesfile_path(struct repository *repo); > > #endif /* REPO_SETTINGS_H */ > -- > 2.48.GIT
Attachment:
signature.asc
Description: PGP signature