# [PATCH] setup: fix grammar in code comment

7 messages from 2026-11-21 to 2026-11-22. Participants: Ophir Bleicher via GitGitGadget, D. Ben Knoble, Ophir Bleicher, Ben Knoble, Junio C Hamano.
Thread: https://gitlist.dev/t/66909

## Ophir Bleicher via GitGitGadget, 2026-11-21 16:49

Subject: [PATCH] setup: fix grammar in code comment
Message-ID: <pull.2500.git.git.1795279741855.gitgitgadget@gmail.com>
URL: https://gitlist.dev/e/pull.2500.git.git.1795279741855.gitgitgadget%40gmail.com

```
From: Ophir Bleicher <ophirble@gmail.com>

Fix a grammar problem in line 271 of setup.c:

will only complain about an inexisting file.

Change it to 'non-existing'.

Signed-off-by: Ophir Bleicher <ophirble@gmail.com>
---
    setup: fix grammar in code comment

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2500%2FOphirBleicher%2Fsetup-code-typo-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2500/OphirBleicher/setup-code-typo-v1
Pull-Request: https://github.com/git/git/pull/2500

 setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.c b/setup.c
index cedc031c54..140f1926c4 100644
--- a/setup.c
+++ b/setup.c
@@ -268,7 +268,7 @@ static int looks_like_pathspec(const char *arg)
  * diagnosis when dying upon finding that "name" is not a pathname.
  * If set to 1, the diagnosis will try to diagnose "name" as an
  * invalid object name (e.g. HEAD:foo). If set to 0, the diagnosis
- * will only complain about an inexisting file.
+ * will only complain about a non-existing file.
  *
  * This function is typically called to check that a "file or rev"
  * argument is unambiguous. In this case, the caller will want

base-commit: f7de81456940dd6f3274e461149bba12965de609
-- 
gitgitgadget


```

## D. Ben Knoble, 2026-11-21 17:27

Subject: Re: [PATCH] setup: fix grammar in code comment
Message-ID: <CALnO6CCJO67E+QA6U4b_p6X9TRwFncc_S6vTs_f6YOX11m0YXA@mail.gmail.com>
URL: https://gitlist.dev/e/CALnO6CCJO67E%2BQA6U4b_p6X9TRwFncc_S6vTs_f6YOX11m0YXA%40mail.gmail.com
In-Reply-To: <pull.2500.git.git.1795279741855.gitgitgadget@gmail.com>

```
On Sat, Nov 21, 2026 at 11:49 AM Ophir Bleicher via GitGitGadget
<gitgitgadget@gmail.com> wrote:
>
> From: Ophir Bleicher <ophirble@gmail.com>
>
> Fix a grammar problem in line 271 of setup.c:

Is it a grammatical error? I think it's simply the wrong word.

> will only complain about an inexisting file.

What a strange little word: it comes from "inexist", which does *not*
mean "does not exist" but rather "exist within"!

https://en.wiktionary.org/wiki/inexist#English

> Change it to 'non-existing'.

I think "non-existent" (or "missing" or "not found") would be more common here.

> Signed-off-by: Ophir Bleicher <ophirble@gmail.com>
> ---
>     setup: fix grammar in code comment
>
> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2500%2FOphirBleicher%2Fsetup-code-typo-v1
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2500/OphirBleicher/setup-code-typo-v1
> Pull-Request: https://github.com/git/git/pull/2500
>
>  setup.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/setup.c b/setup.c
> index cedc031c54..140f1926c4 100644
> --- a/setup.c
> +++ b/setup.c
> @@ -268,7 +268,7 @@ static int looks_like_pathspec(const char *arg)
>   * diagnosis when dying upon finding that "name" is not a pathname.
>   * If set to 1, the diagnosis will try to diagnose "name" as an
>   * invalid object name (e.g. HEAD:foo). If set to 0, the diagnosis
> - * will only complain about an inexisting file.
> + * will only complain about a non-existing file.
>   *
>   * This function is typically called to check that a "file or rev"
>   * argument is unambiguous. In this case, the caller will want
>
> base-commit: f7de81456940dd6f3274e461149bba12965de609
> --
> gitgitgadget
>


-- 
D. Ben Knoble


```

## Ophir Bleicher, 2026-11-21 17:29

Subject: Re: [PATCH] setup: fix grammar in code comment
Message-ID: <DCB2D90D-09E5-4D19-99F9-7E268434952B@gmail.com>
URL: https://gitlist.dev/e/DCB2D90D-09E5-4D19-99F9-7E268434952B%40gmail.com
In-Reply-To: <CALnO6CCJO67E+QA6U4b_p6X9TRwFncc_S6vTs_f6YOX11m0YXA@mail.gmail.com>

```
OK, I’ll submit another patch...

> On 21 Nov 2026, at 19:27, D. Ben Knoble <ben.knoble@gmail.com> wrote:
> 
> On Sat, Nov 21, 2026 at 11:49 AM Ophir Bleicher via GitGitGadget
> <gitgitgadget@gmail.com> wrote:
>> 
>> From: Ophir Bleicher <ophirble@gmail.com>
>> 
>> Fix a grammar problem in line 271 of setup.c:
> 
> Is it a grammatical error? I think it's simply the wrong word.
> 
>> will only complain about an inexisting file.
> 
> What a strange little word: it comes from "inexist", which does *not*
> mean "does not exist" but rather "exist within"!
> 
> https://en.wiktionary.org/wiki/inexist#English
> 
>> Change it to 'non-existing'.
> 
> I think "non-existent" (or "missing" or "not found") would be more common here.
> 
>> Signed-off-by: Ophir Bleicher <ophirble@gmail.com>
>> ---
>>    setup: fix grammar in code comment
>> 
>> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2500%2FOphirBleicher%2Fsetup-code-typo-v1
>> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2500/OphirBleicher/setup-code-typo-v1
>> Pull-Request: https://github.com/git/git/pull/2500
>> 
>> setup.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>> 
>> diff --git a/setup.c b/setup.c
>> index cedc031c54..140f1926c4 100644
>> --- a/setup.c
>> +++ b/setup.c
>> @@ -268,7 +268,7 @@ static int looks_like_pathspec(const char *arg)
>>  * diagnosis when dying upon finding that "name" is not a pathname.
>>  * If set to 1, the diagnosis will try to diagnose "name" as an
>>  * invalid object name (e.g. HEAD:foo). If set to 0, the diagnosis
>> - * will only complain about an inexisting file.
>> + * will only complain about a non-existing file.
>>  *
>>  * This function is typically called to check that a "file or rev"
>>  * argument is unambiguous. In this case, the caller will want
>> 
>> base-commit: f7de81456940dd6f3274e461149bba12965de609
>> --
>> gitgitgadget
>> 
> 
> 
> -- 
> D. Ben Knoble



```

## Ophir Bleicher via GitGitGadget, 2026-11-21 17:33

Subject: [PATCH v2] setup: fix incorrect word in code comment
Message-ID: <pull.2500.v2.git.git.1795282436976.gitgitgadget@gmail.com>
URL: https://gitlist.dev/e/pull.2500.v2.git.git.1795282436976.gitgitgadget%40gmail.com
In-Reply-To: <pull.2500.git.git.1795279741855.gitgitgadget@gmail.com>

```
From: Ophir Bleicher <ophirble@gmail.com>

Fix an incorrect word problem in line 271 of setup.c:

will only complain about an inexisting file.

Change it to 'non-existent'.

Signed-off-by: Ophir Bleicher <ophirble@gmail.com>
---
    setup: fix incorrect word in code comment
    
    Changes since v1:
    
     * Update commit message from grammar to incorrect word
     * Change word to non-existent instead of non-existing

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2500%2FOphirBleicher%2Fsetup-code-typo-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2500/OphirBleicher/setup-code-typo-v2
Pull-Request: https://github.com/git/git/pull/2500

Range-diff vs v1:

 1:  6cc8123ca4 ! 1:  3b7539bd5f setup: fix grammar in code comment
     @@ Metadata
      Author: Ophir Bleicher <ophirble@gmail.com>
      
       ## Commit message ##
     -    setup: fix grammar in code comment
     +    setup: fix incorrect word in code comment
      
     -    Fix a grammar problem in line 271 of setup.c:
     +    Fix an incorrect word problem in line 271 of setup.c:
      
          will only complain about an inexisting file.
      
     -    Change it to 'non-existing'.
     +    Change it to 'non-existent'.
      
          Signed-off-by: Ophir Bleicher <ophirble@gmail.com>
      


 setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.c b/setup.c
index cedc031c54..140f1926c4 100644
--- a/setup.c
+++ b/setup.c
@@ -268,7 +268,7 @@ static int looks_like_pathspec(const char *arg)
  * diagnosis when dying upon finding that "name" is not a pathname.
  * If set to 1, the diagnosis will try to diagnose "name" as an
  * invalid object name (e.g. HEAD:foo). If set to 0, the diagnosis
- * will only complain about an inexisting file.
+ * will only complain about a non-existing file.
  *
  * This function is typically called to check that a "file or rev"
  * argument is unambiguous. In this case, the caller will want

base-commit: f7de81456940dd6f3274e461149bba12965de609
-- 
gitgitgadget


```

## Ophir Bleicher via GitGitGadget, 2026-11-21 17:35

Subject: [PATCH v3] setup: fix incorrect word in code comment
Message-ID: <pull.2500.v3.git.git.1795282558789.gitgitgadget@gmail.com>
URL: https://gitlist.dev/e/pull.2500.v3.git.git.1795282558789.gitgitgadget%40gmail.com
In-Reply-To: <pull.2500.git.git.1795279741855.gitgitgadget@gmail.com>

```
From: Ophir Bleicher <ophirble@gmail.com>

Fix an incorrect word problem in line 271 of setup.c:

will only complain about an inexisting file.

Change it to 'non-existent'.

Signed-off-by: Ophir Bleicher <ophirble@gmail.com>
---
    setup: fix incorrect word in code comment
    
    Changes since v1:
    
     * Update commit message from grammar to incorrect word
     * Change word to non-existent instead of non-existing Changes since v2:
     * Really change word to non-existent instead of non-existing

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2500%2FOphirBleicher%2Fsetup-code-typo-v3
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2500/OphirBleicher/setup-code-typo-v3
Pull-Request: https://github.com/git/git/pull/2500

Range-diff vs v2:

 1:  3b7539bd5f ! 1:  2158470090 setup: fix incorrect word in code comment
     @@ setup.c: static int looks_like_pathspec(const char *arg)
        * If set to 1, the diagnosis will try to diagnose "name" as an
        * invalid object name (e.g. HEAD:foo). If set to 0, the diagnosis
      - * will only complain about an inexisting file.
     -+ * will only complain about a non-existing file.
     ++ * will only complain about a non-existent file.
        *
        * This function is typically called to check that a "file or rev"
        * argument is unambiguous. In this case, the caller will want


 setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.c b/setup.c
index cedc031c54..3aaa1b65b2 100644
--- a/setup.c
+++ b/setup.c
@@ -268,7 +268,7 @@ static int looks_like_pathspec(const char *arg)
  * diagnosis when dying upon finding that "name" is not a pathname.
  * If set to 1, the diagnosis will try to diagnose "name" as an
  * invalid object name (e.g. HEAD:foo). If set to 0, the diagnosis
- * will only complain about an inexisting file.
+ * will only complain about a non-existent file.
  *
  * This function is typically called to check that a "file or rev"
  * argument is unambiguous. In this case, the caller will want

base-commit: f7de81456940dd6f3274e461149bba12965de609
-- 
gitgitgadget


```

## Ben Knoble, 2026-11-21 18:31

Subject: Re: [PATCH v3] setup: fix incorrect word in code comment
Message-ID: <99FFF51E-E7B7-421C-9868-8D93EFE633FF@gmail.com>
URL: https://gitlist.dev/e/99FFF51E-E7B7-421C-9868-8D93EFE633FF%40gmail.com
In-Reply-To: <pull.2500.v3.git.git.1795282558789.gitgitgadget@gmail.com>

```

> Le 21 nov. 2026 à 12:36, Ophir Bleicher via GitGitGadget <gitgitgadget@gmail.com> a écrit :
> 
> ﻿From: Ophir Bleicher <ophirble@gmail.com>
> 
> Fix an incorrect word problem in line 271 of setup.c:
> 
> will only complain about an inexisting file.
> 
> Change it to 'non-existent'.
> 
> Signed-off-by: Ophir Bleicher <ophirble@gmail.com>
> ---
>    setup: fix incorrect word in code comment
> 
>    Changes since v1:
> 
>     * Update commit message from grammar to incorrect word
>     * Change word to non-existent instead of non-existing Changes since v2:
>     * Really change word to non-existent instead of non-existing

V3 looks good to me.

Seems like the formatting of the notes ended up a bit strange here,
just something to note for the future ;)

In a similar vein, it’s a good idea to double-check things before 
sending them out to confusing readers with lots of slightly-tweaked versions.

> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2500%2FOphirBleicher%2Fsetup-code-typo-v3
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2500/OphirBleicher/setup-code-typo-v3
> Pull-Request: https://github.com/git/git/pull/2500
> 
> Range-diff vs v2:
> 
> 1:  3b7539bd5f ! 1:  2158470090 setup: fix incorrect word in code comment
>     @@ setup.c: static int looks_like_pathspec(const char *arg)
>        * If set to 1, the diagnosis will try to diagnose "name" as an
>        * invalid object name (e.g. HEAD:foo). If set to 0, the diagnosis
>      - * will only complain about an inexisting file.
>     -+ * will only complain about a non-existing file.
>     ++ * will only complain about a non-existent file.
>        *
>        * This function is typically called to check that a "file or rev"
>        * argument is unambiguous. In this case, the caller will want
> 
> 
> setup.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/setup.c b/setup.c
> index cedc031c54..3aaa1b65b2 100644
> --- a/setup.c
> +++ b/setup.c
> @@ -268,7 +268,7 @@ static int looks_like_pathspec(const char *arg)
>  * diagnosis when dying upon finding that "name" is not a pathname.
>  * If set to 1, the diagnosis will try to diagnose "name" as an
>  * invalid object name (e.g. HEAD:foo). If set to 0, the diagnosis
> - * will only complain about an inexisting file.
> + * will only complain about a non-existent file.
>  *
>  * This function is typically called to check that a "file or rev"
>  * argument is unambiguous. In this case, the caller will want
> 
> base-commit: f7de81456940dd6f3274e461149bba12965de609
> --
> gitgitgadget
> 


```

## Junio C Hamano, 2026-11-22 19:30

Subject: Re: [PATCH v3] setup: fix incorrect word in code comment
Message-ID: <xmqqqzgck6k6.fsf@gitster.g>
URL: https://gitlist.dev/e/xmqqqzgck6k6.fsf%40gitster.g
In-Reply-To: <99FFF51E-E7B7-421C-9868-8D93EFE633FF@gmail.com>

```
Ben Knoble <ben.knoble@gmail.com> writes:

>>    Changes since v1:
>> 
>>     * Update commit message from grammar to incorrect word
>>     * Change word to non-existent instead of non-existing Changes since v2:
>>     * Really change word to non-existent instead of non-existing
>
> V3 looks good to me.

;-)

> Seems like the formatting of the notes ended up a bit strange here,
> just something to note for the future ;)
>
> In a similar vein, it’s a good idea to double-check things before 
> sending them out to confusing readers with lots of slightly-tweaked versions.

Good suggestion.

Will pick-up, and mark the topic as ready for 'next'.
Thanks for writing and reviewing, both of you.


```
