git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [GSOC PATCH v2 1/2] environment: move access to "core.attributesfile" into repo settings

From
Karthik Nayak <karthik.188@gmail.com>
Date
Mar 10, 2025, 21:11 UTC
Message-ID
<CAOLa=ZSqgzLv=X9=7kFFeA+w_PsPwYz6iJyeqW=i4yrrszURBg@mail.gmail.com>
In-Reply-To
<20250310151048.69825-2-ayu.chandekar@gmail.com>
Ayush Chandekar <ayu.chandekar@gmail.com> writes:
[snip]
Show 17 quoted lines
> 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?
Show 5 quoted lines
> +const char *repo_settings_get_attributesfile_path(struct repository *repo);
>
>  #endif /* REPO_SETTINGS_H */
> --
> 2.48.GIT
Previous: Ayush ChandekarNext: Ayush Chandekar
Message 9 of 18 in “environment: move access to "core.attributesfile" into repo settings”
  1. environment: move access to "core.attributesfile" into repo settingsAyush Chandekar, Mar 9, 2025
  2. Patrick SteinhardtMar 10, 2025
  3. Ayush ChandekarMar 10, 2025
  4. Junio C HamanoMar 10, 2025
  5. Ayush ChandekarMar 10, 2025
  6. Junio C HamanoMar 10, 2025
  7. 0/2 Stop depending on `the_repository` for core.attributesfileAyush Chandekar, Mar 10, 2025
  8. 1/2 environment: move access to "core.attributesfile" into repo settingsAyush Chandekar, Mar 10, 2025
  9. Karthik NayakMar 10, 2025
  10. 2/2 attr: use `repo_settings_get_attributesfile_path()` and update callersAyush Chandekar, Mar 10, 2025
  11. Karthik NayakMar 10, 2025
  12. Junio C HamanoMar 10, 2025
  13. Ayush ChandekarMar 11, 2025
  14. shejialuoMar 11, 2025
  15. Junio C HamanoMar 11, 2025
  16. Ayush ChandekarMar 11, 2025
  17. Outreachy intern: Request for the completion of this seriesOlamide Caleb Bello, Dec 8, 2025
  18. Bello OlamideDec 9, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.