userdiff.h: add missing declaration (hdr-check)
diff mbox series

Message ID c46ca4a9-6822-436c-8e84-95b977527912@ramsayjones.plus.com
State New
Headers show
Series
  • userdiff.h: add missing declaration (hdr-check)
Related show

Commit Message

Ramsay Jones Sept. 19, 2018, 12:20 a.m. UTC
Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
---

Hi Junio,

... and this is the patch I needed for the current 'pu' branch.

ATB,
Ramsay Jones

 userdiff.h | 2 ++
 1 file changed, 2 insertions(+)

Comments

Junio C Hamano Sept. 21, 2018, 4:24 p.m. UTC | #1
Ramsay Jones <ramsay@ramsayjones.plus.com> writes:

> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> ---
>
> Hi Junio,
>
> ... and this is the patch I needed for the current 'pu' branch.

Which in turn means that this is to fix 5b338d60 ("userdiff.c:
remove implicit dependency on the_index", 2018-09-15) and should be
rolled into nd/the_index topic.


>
> ATB,
> Ramsay Jones
>
>  userdiff.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/userdiff.h b/userdiff.h
> index dad3fc03c1..b072bfe89a 100644
> --- a/userdiff.h
> +++ b/userdiff.h
> @@ -3,6 +3,8 @@
>  
>  #include "notes-cache.h"
>  
> +struct index_state;
> +
>  struct userdiff_funcname {
>  	const char *pattern;
>  	int cflags;
Duy Nguyen Sept. 21, 2018, 4:26 p.m. UTC | #2
On Fri, Sep 21, 2018 at 6:24 PM Junio C Hamano <gitster@pobox.com> wrote:
>
> Ramsay Jones <ramsay@ramsayjones.plus.com> writes:
>
> > Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> > ---
> >
> > Hi Junio,
> >
> > ... and this is the patch I needed for the current 'pu' branch.
>
> Which in turn means that this is to fix 5b338d60 ("userdiff.c:
> remove implicit dependency on the_index", 2018-09-15) and should be
> rolled into nd/the_index topic.

I guess I should send v6 then?

Patch
diff mbox series

diff --git a/userdiff.h b/userdiff.h
index dad3fc03c1..b072bfe89a 100644
--- a/userdiff.h
+++ b/userdiff.h
@@ -3,6 +3,8 @@ 
 
 #include "notes-cache.h"
 
+struct index_state;
+
 struct userdiff_funcname {
 	const char *pattern;
 	int cflags;