Thread (2 messages) 2 messages, 2 authors, 2023-11-04

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

From: Eric Sunshine <hidden>
Date: 2023-11-04 06:28:39

Possibly related (same subject, not in this thread)

On Sat, Nov 4, 2023 at 1:12 AM Junio C Hamano [off-list ref] wrote:
quoted
+                     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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help