# [GSoC PATCH] doc: fix typo in tree-walk.h comment

3 messages from 2026-02-05 to 2026-02-16. Participants: Ayush Jha, Chandra Pratap.
Thread: https://gitlist.dev/t/64924

## Ayush Jha, 2026-02-05 08:08

Subject: [GSoC PATCH] doc: fix typo in tree-walk.h comment
Message-ID: <20260205080853.2034-1-kumarayushjha123@gmail.com>
URL: https://gitlist.dev/e/20260205080853.2034-1-kumarayushjha123%40gmail.com

```
Fix a duplicated word in a comment describing the return value.

No code or behavior change.

Signed-off-by: Ayush Jha <kumarayushjha123@gmail.com>
---
 tree-walk.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tree-walk.h b/tree-walk.h
index 29a55328bd..9646c47ac5 100644
--- a/tree-walk.h
+++ b/tree-walk.h
@@ -177,7 +177,7 @@ struct traverse_info {
 
 /**
  * Walk trees starting with "tree_oid" to find the entry for "name", and
- * return the the object name and the mode of the found entry via the
+ * return the object name and the mode of the found entry via the
  * "oid" and "mode" parameters.  Return 0 if the entry is found, and -1
  * otherwise.
  */
-- 
2.53.0.windows.1


```

## Chandra Pratap, 2026-02-06 16:57

Subject: Re: [GSoC PATCH] doc: fix typo in tree-walk.h comment
Message-ID: <CA+J6zkRtjxa2BUoa9SMXVET7w4O6=b8iYMLPPpb4REROPGGQNA@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2BJ6zkRtjxa2BUoa9SMXVET7w4O6%3Db8iYMLPPpb4REROPGGQNA%40mail.gmail.com
In-Reply-To: <20260205080853.2034-1-kumarayushjha123@gmail.com>

```
On Thu, 5 Feb 2026 at 13:39, Ayush Jha <kumarayushjha123@gmail.com> wrote:
>
> Fix a duplicated word in a comment describing the return value.
>
> No code or behavior change.
>
> Signed-off-by: Ayush Jha <kumarayushjha123@gmail.com>
> ---
>  tree-walk.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tree-walk.h b/tree-walk.h
> index 29a55328bd..9646c47ac5 100644
> --- a/tree-walk.h
> +++ b/tree-walk.h
> @@ -177,7 +177,7 @@ struct traverse_info {
>
>  /**
>   * Walk trees starting with "tree_oid" to find the entry for "name", and
> - * return the the object name and the mode of the found entry via the
> + * return the object name and the mode of the found entry via the
>   * "oid" and "mode" parameters.  Return 0 if the entry is found, and -1
>   * otherwise.
>   */
> --
> 2.53.0.windows.1

Nit: The subject line should preferably use 'tree-walk.h: ' instead of 'doc: '
since it is a change to the `tree-walk.h` file and not 'Documentation'.

Other than that, the change looks good to me. Thanks for your interest
in contributing to Git!

Thanks,
Chandra.

```

## Ayush Jha, 2026-02-16 07:54

Subject: Re: [GSoC PATCH] doc: fix typo in tree-walk.h comment
Message-ID: <CAFNBzOfy6Gcx=jcDDBGzwELskTAAjKbNiDNGwh=QNLz8T+-O2g@mail.gmail.com>
URL: https://gitlist.dev/e/CAFNBzOfy6Gcx%3DjcDDBGzwELskTAAjKbNiDNGwh%3DQNLz8T%2B-O2g%40mail.gmail.com
In-Reply-To: <CA+J6zkRtjxa2BUoa9SMXVET7w4O6=b8iYMLPPpb4REROPGGQNA@mail.gmail.com>

```
Hi Chandra,

Thank you for pointing that out. You’re absolutely right — the subject
line should use “tree-walk.h:” instead of “doc:” since the change is
in the header file and not in Documentation.

Would you prefer that I resend the patch with the corrected subject prefix?

Thanks again for the review and guidance.

Best regards,
Ayush

On Fri, Feb 6, 2026 at 10:27 PM Chandra Pratap
<chandrapratap3519@gmail.com> wrote:
>
> On Thu, 5 Feb 2026 at 13:39, Ayush Jha <kumarayushjha123@gmail.com> wrote:
> >
> > Fix a duplicated word in a comment describing the return value.
> >
> > No code or behavior change.
> >
> > Signed-off-by: Ayush Jha <kumarayushjha123@gmail.com>
> > ---
> >  tree-walk.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/tree-walk.h b/tree-walk.h
> > index 29a55328bd..9646c47ac5 100644
> > --- a/tree-walk.h
> > +++ b/tree-walk.h
> > @@ -177,7 +177,7 @@ struct traverse_info {
> >
> >  /**
> >   * Walk trees starting with "tree_oid" to find the entry for "name", and
> > - * return the the object name and the mode of the found entry via the
> > + * return the object name and the mode of the found entry via the
> >   * "oid" and "mode" parameters.  Return 0 if the entry is found, and -1
> >   * otherwise.
> >   */
> > --
> > 2.53.0.windows.1
>
> Nit: The subject line should preferably use 'tree-walk.h: ' instead of 'doc: '
> since it is a change to the `tree-walk.h` file and not 'Documentation'.
>
> Other than that, the change looks good to me. Thanks for your interest
> in contributing to Git!
>
> Thanks,
> Chandra.

```
