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

Re: [PATCH 1/1] attr: enable attr pathspec magic for git-add and git-stash

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 4, 2023, 07:14 UTC
Message-ID
<xmqqfs1mgfcd.fsf@gitster.g>
In-Reply-To
<CAPig+cRR0PfWP0_uoevQnctSosb-k9cp3b08-sQNV5OPuQ2tAg@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
Show 13 quoted lines
> On Sat, Nov 4, 2023 at 1:12 AM Junio C Hamano <gitster@pobox.com> wrote:
>> > +                     if ((magic & pathspec_magic[i].bit) && (pathspec_magic[i].mnemonic != '\0')) {
>>
>> Overly long, with a stylo.
>>
>> Here is what I ended up queuing.
>>
>> +               for (int i = 0; i < ARRAY_SIZE(pathspec_magic); i++) {
>> +                       if ((magic & pathspec_magic[i].bit) &&
>> +                           (pathspec_magic[i].mnemonic)) {
>
> Nit: The no-value-added parentheses around
> `pathspec_magic[i].mnemonic` can also be dropped.
Yeah, thanks for spotting.
Previous: Eric SunshineNext: Junio C Hamano
Message 18 of 19 in “Allow attr magic for git-add, git-stash.”
  1. 1/1 Allow attr magic for git-add, git-stash.Joanna Wang, Oct 5, 2023
  2. Junio C HamanoOct 6, 2023
  3. Junio C HamanoOct 6, 2023
  4. 1/1 add: Enable attr pathspec magic for git-add.Joanna Wang, Oct 7, 2023
  5. Joanna WangOct 7, 2023
  6. Junio C HamanoOct 7, 2023
  7. 1/1 add: enable attr pathspec magicJoanna Wang, Oct 11, 2023
  8. 1/1 attr: enable attr pathspec magic for git-add and git-stashJoanna Wang, Nov 2, 2023
  9. Junio C HamanoNov 2, 2023
  10. 1/1 attr: enable attr pathspec magic for git-add and git-stashJoanna Wang, Nov 2, 2023
  11. Junio C HamanoNov 2, 2023
  12. Junio C HamanoNov 2, 2023
  13. 1/1 attr: enable attr pathspec magic for git-add and git-stashJoanna Wang, Nov 3, 2023
  14. Ruben SafirNov 3, 2023
  15. 1/1 attr: enable attr pathspec magic for git-add and git-stashJoanna Wang, Nov 3, 2023
  16. Junio C HamanoNov 4, 2023
  17. Eric SunshineNov 4, 2023
  18. Junio C HamanoNov 4, 2023
  19. Junio C HamanoNov 9, 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.