# [PATCH v2] versioncmp: fix typo in versioncmp.c, t/t0022-crlf-rename.sh

3 messages from 2026-08-31 to 2026-08-31. Participants: Hardik Kumar, Junio C Hamano.
Thread: https://gitlist.dev/t/66241

## Hardik Kumar, 2026-08-31 18:45

Subject: [PATCH v2] versioncmp: fix typo in versioncmp.c, t/t0022-crlf-rename.sh
Message-ID: <20260901-typo-fix-v2-1-6aeafbae6389@gmail.com>

```
The patch fixes two typos in two places.
versoncmp.c:            "fractionnal" -> "fractional"
t/t0022-crlf-rename.sh: "similiarity" -> "similarity"

No functional changes, only update a comment and a test_description.

Signed-off-by: Hardik Kumar <hardikxk@gmail.com>
---
Changes in v2:
- refactor commit message
- Link to v1: https://lore.kernel.org/r/20260828-typo-fix-v1-1-24e80a87ed53@gmail.com
---
 t/t0022-crlf-rename.sh | 2 +-
 versioncmp.c           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/t/t0022-crlf-rename.sh b/t/t0022-crlf-rename.sh
index 9bd863a970..328c6e5903 100755
--- a/t/t0022-crlf-rename.sh
+++ b/t/t0022-crlf-rename.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-test_description='ignore CR in CRLF sequence while computing similiarity'
+test_description='ignore CR in CRLF sequence while computing similarity'
 
 . ./test-lib.sh
 
diff --git a/versioncmp.c b/versioncmp.c
index 3a81b17bc1..f1e451755a 100644
--- a/versioncmp.c
+++ b/versioncmp.c
@@ -15,7 +15,7 @@
 
 /*
  * states: S_N: normal, S_I: comparing integral part, S_F: comparing
- * fractionnal parts, S_Z: idem but with leading Zeroes only
+ * fractional parts, S_Z: idem but with leading Zeroes only
  */
 #define  S_N    0x0
 #define  S_I    0x3

---
base-commit: f78ce2f7b6df702f93d40b85d6bda92a3f65da79
change-id: 20260828-typo-fix-721b77177721


```

## Junio C Hamano, 2026-08-31 19:01

Subject: Re: [PATCH v2] versioncmp: fix typo in versioncmp.c, t/t0022-crlf-rename.sh
Message-ID: <xmqq7bl6w1vh.fsf@gitster.g>
In-Reply-To: <20260901-typo-fix-v2-1-6aeafbae6389@gmail.com>

```
Hardik Kumar <hardikxk@gmail.com> writes:

> The patch fixes two typos in two places.
> versoncmp.c:            "fractionnal" -> "fractional"

Verson???

> t/t0022-crlf-rename.sh: "similiarity" -> "similarity"
>
> No functional changes, only update a comment and a test_description.
>
> Signed-off-by: Hardik Kumar <hardikxk@gmail.com>
> ---
> Changes in v2:
> - refactor commit message
> - Link to v1: https://lore.kernel.org/r/20260828-typo-fix-v1-1-24e80a87ed53@gmail.com
> ---
>  t/t0022-crlf-rename.sh | 2 +-
>  versioncmp.c           | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/t/t0022-crlf-rename.sh b/t/t0022-crlf-rename.sh
> index 9bd863a970..328c6e5903 100755
> --- a/t/t0022-crlf-rename.sh
> +++ b/t/t0022-crlf-rename.sh
> @@ -1,6 +1,6 @@
>  #!/bin/sh
>  
> -test_description='ignore CR in CRLF sequence while computing similiarity'
> +test_description='ignore CR in CRLF sequence while computing similarity'
>  
>  . ./test-lib.sh
>  
> diff --git a/versioncmp.c b/versioncmp.c
> index 3a81b17bc1..f1e451755a 100644
> --- a/versioncmp.c
> +++ b/versioncmp.c
> @@ -15,7 +15,7 @@
>  
>  /*
>   * states: S_N: normal, S_I: comparing integral part, S_F: comparing
> - * fractionnal parts, S_Z: idem but with leading Zeroes only
> + * fractional parts, S_Z: idem but with leading Zeroes only
>   */
>  #define  S_N    0x0
>  #define  S_I    0x3
>
> ---
> base-commit: f78ce2f7b6df702f93d40b85d6bda92a3f65da79
> change-id: 20260828-typo-fix-721b77177721

```

## Hardik Kumar, 2026-08-31 19:29

Subject: Re: [PATCH v2] versioncmp: fix typo in versioncmp.c, t/t0022-crlf-rename.sh
Message-ID: <DL3DLXQ84JNN.1S1CYS9JT8XOJ@gmail.com>
In-Reply-To: <xmqq7bl6w1vh.fsf@gitster.g>

```
On Tue Sep 1, 2026 at 12:31 AM IST, Junio C Hamano wrote:
> Hardik Kumar <hardikxk@gmail.com> writes:
>
>> The patch fixes two typos in two places.
>> versoncmp.c:            "fractionnal" -> "fractional"
>
> Verson???

Thats ironic. Fixed in follow up.

Thanks.

Hardik

```
