Thread (164 messages) flat view 164 messages, 7 authors, 2021-09-18

Re: [PATCH] pack-write: skip *.rev work when not writing *.rev

From: Carlo Arenas <hidden>
Date: 2021-09-08 01:35:26

On Tue, Sep 7, 2021 at 6:10 PM Ævar Arnfjörð Bjarmason [off-list ref] wrote:
+       if (!(flags & WRITE_REV) && !(flags & WRITE_REV_VERIFY))
+               return NULL;
I see this expression matches exactly the logic from 8ef50d9958 which
is why I presume
you used it, but the simpler (and logically equivalent[1]) :

  if !((flags & WRITE_REV) || (flags & WRITE_REV_VERIFY))

is easier to read IMHO

Carlo

[1] https://en.wikipedia.org/wiki/De_Morgan%27s_laws
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help