Skip to contentSkip to conversation

setup: fix grammar in code comment

PATCH Superseded Ophir Bleicher via GitGitGadget 4 participants 7 messages Nov 21 – Nov 22

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 setup: fix grammar in code comment

From: Ophir Bleicher <[email protected]>

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

will only complain about an inexisting file.

Change it to 'non-existing'.

---
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(-)
setup.c +1 -1
index cedc031c54..140f1926c4 100644
@@ -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

Signature · 1 line
gitgitgadget
#1 lore raw
Quoted 4 lines · Ophir Bleicher via GitGitGadget

From: Ophir Bleicher <[email protected]>

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

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

Quoted 1 line

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

Quoted 1 line

Change it to 'non-existing'.

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

Quoted 29 lines

---
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(-)
setup.c +1 -1
index cedc031c54..140f1926c4 100644
@@ -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

Signature · 1 line
D. Ben Knoble
#2 lore raw

OK, I’ll submit another patch...

Quoted 55 lines · D. Ben Knoble
Quoted 4 lines · Ophir Bleicher via GitGitGadget

From: Ophir Bleicher <[email protected]>

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

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

Quoted 1 line

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

Quoted 1 line

Change it to 'non-existing'.

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

Quoted 29 lines

---
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(-)
setup.c +1 -1
index cedc031c54..140f1926c4 100644
@@ -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

Signature · 1 line
D. Ben Knoble
#3 lore raw

PATCH v2 1/1 setup: fix incorrect word in code comment

In reply to Ophir Bleicher via GitGitGadget

From: Ophir Bleicher <[email protected]>

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

will only complain about an inexisting file.

Change it to 'non-existent'.

---
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 <[email protected]>

## 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'.

 setup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
setup.c +1 -1
index cedc031c54..140f1926c4 100644
@@ -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

Signature · 1 line
gitgitgadget
#4 lore raw

PATCH v3 1/1 setup: fix incorrect word in code comment

In reply to Ophir Bleicher via GitGitGadget

From: Ophir Bleicher <[email protected]>

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

will only complain about an inexisting file.

Change it to 'non-existent'.

---
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(-)
setup.c +1 -1
index cedc031c54..3aaa1b65b2 100644
@@ -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

Signature · 1 line
gitgitgadget
#5 lore raw

Re: [PATCH v3] setup: fix incorrect word in code comment

Quoted 12 lines · Ophir Bleicher via GitGitGadget

From: Ophir Bleicher <[email protected]>

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

will only complain about an inexisting file.

Change it to 'non-existent'.

Quoted 8 lines

---
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.

Quoted 39 lines

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(-)
setup.c +1 -1
index cedc031c54..3aaa1b65b2 100644
@@ -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

#6 lore raw

Re: [PATCH v3] setup: fix incorrect word in code comment

Quoted 7 lines · Ben Knoble
Quoted 5 lines

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.

;-)

Quoted 5 lines

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.