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

Re: [PATCH 0/2] diff: support bare repositories when reading gitattributes for diff algorithm

From
Philippe Blain <levraiphilippeblain@gmail.com>
Date
Mar 14, 2023, 17:21 UTC
Message-ID
<ddd7cbb6-4f4d-ba0e-857e-5981779326d0@gmail.com>
In-Reply-To
<pull.1459.git.git.1678758818.gitgitgadget@gmail.com>
Hi John,
Le 2023-03-13 à 21:53, John Cai via GitGitGadget a écrit :
> This patch series adds support for bare repositories for the feature added
> in [1]. When using a bare repository, by default we will look for
> gitattributes from HEAD. When the --attr-source option is passed, we will
> try to read gitattributes from the commit.

When I read that I immediately thought of the config settings 'mailmap.file', 'mailmap.blob' which allow the same sort of thing, but for the mailmap.

For the sake of consistency of the whole system, maybe we would want to support 'attr.file' and 'attr.blob' ? In that case, maybe we don't need a new command line option at all...

Cheers,
Philippe.
Previous: John CaiNext: John Cai
Message 11 of 15 in “diff: support bare repositories when reading gitattributes for diff algorithm”
  1. 0/2 diff: support bare repositories when reading gitattributes for diff algorithmJohn Cai via GitGitGadget, Mar 14, 2023
  2. 2/2 diff: add --attr-source to read gitattributes from a commitJohn Cai via GitGitGadget, Mar 14, 2023
  3. 1/2 diff: use HEAD for attributes when using bare repositoryJohn Cai via GitGitGadget, Mar 14, 2023
  4. Junio C HamanoMar 14, 2023
  5. Junio C HamanoMar 14, 2023
  6. John CaiMar 14, 2023
  7. Junio C HamanoMar 14, 2023
  8. John CaiMar 16, 2023
  9. Junio C HamanoMar 16, 2023
  10. John CaiMar 17, 2023
  11. Philippe BlainMar 14, 2023
  12. John CaiMar 14, 2023
  13. Junio C HamanoMar 14, 2023
  14. Jeff KingMar 16, 2023
  15. Junio C HamanoMar 16, 2023

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.