Re: [PATCH 1/6] refs: remove unused header
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 14, 2026, 17:08 UTC
- Message-ID
- <xmqqwm1kf7gr.fsf@gitster.g>
- In-Reply-To
- <20260114-633-regression-lost-diagnostic-message-when-pushing-non-commit-objects-to-refs-heads-v1-1-f5f8b173c501@gmail.com>
Karthik Nayak <karthik.188@gmail.com> writes:
Show 7 quoted lines
> Some of the headers in 'refs.c' are no longer required, let's remove > them. > > Signed-off-by: Karthik Nayak <karthik.188@gmail.com> > --- > refs.c | 2 -- > 1 file changed, 2 deletions(-)
One thing to note is that The resulting file refs.c still includes hook.h and because of that, the removal of run-command.h from here has no effect.
Show 20 quoted lines
> diff --git a/refs.c b/refs.c > index e06e0cb072..965b232a06 100644 > --- a/refs.c > +++ b/refs.c > @@ -15,7 +15,6 @@ > #include "iterator.h" > #include "refs.h" > #include "refs/refs-internal.h" > -#include "run-command.h" > #include "hook.h" > #include "object-name.h" > #include "odb.h" > @@ -26,7 +25,6 @@ > #include "strvec.h" > #include "repo-settings.h" > #include "setup.h" > -#include "sigchain.h" > #include "date.h" > #include "commit.h" > #include "wildmatch.h"