Re: [PATCH 02/16] treewide: remove unnecessary git-compat-util.h includes in headers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Feb 23, 2023 at 5:52 AM Derrick Stolee <derrickstolee@xxxxxxxxxx> wrote:
>
> On 2/23/2023 3:05 AM, Elijah Newren via GitGitGadget wrote:
> > From: Elijah Newren <newren@xxxxxxxxx>
> >
> > Since git-compat-util.h needs to be included first in C files, having it
> > appear in header files is unnecessary.  More importantly, having it
> > included in header files seems to lead to folks leaving it out of C
> > files, which makes it harder to verify that the rule is being followed.
> > Remove it from header files, other than the ones that have been approved
> > as alternate first includes.
> ...
> >  compat/fsmonitor/fsm-ipc-win32.c       | 1 +
> >  compat/fsmonitor/fsm-settings-darwin.c | 1 +
>
> It looks like you have a couple .c files here that belong in the
> previous patch.

Oops, indeed.  Bad squash.  (I tended to ignore files under compat/
thinking they were special, but then later found out they also needed
to be fixed so that things would work right.)

Thanks for catching; will fix.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux