🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.git
7 messages
7 total messages Started by Okhuomon Ajayi Wed, 14 Oct 2026 08:12
[Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
#487
Author: Okhuomon Ajayi
Date: Wed, 14 Oct 2026 08:12
28 lines
8491 bytes
Since 84325f0730 (merge,diff: remove the_repository check before
prefetching blobs, 2026-02-21), diffcore-break.c no longer references
the_repository, so it does not need USE_THE_REPOSITORY_VARIABLE.

Without this, new use of the_repository in this file would fail to
compile.

Signed-off-by: Okhuomon Ajayi <okhuomonajayi54@gmail.com>
---
 diffcore-break.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/diffcore-break.c b/diffcore-break.c
index b5bcc956cc..71d0e48beb 100644
--- a/diffcore-break.c
+++ b/diffcore-break.c
@@ -2,8 +2,6 @@
  * Copyright (C) 2005 Junio C Hamano
  */
 
-#define USE_THE_REPOSITORY_VARIABLE
-
 #include "git-compat-util.h"
 #include "diffcore.h"
 #include "hash.h"
-- 
2.54.0
Re: [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
#491
Author: Usman Akinyemi
Date: Wed, 14 Oct 2026 10:24
15 lines
9242 bytes
>
> Since 84325f0730 (merge,diff: remove the_repository check before
> prefetching blobs, 2026-02-21), diffcore-break.c no longer references
> the_repository, so it does not need USE_THE_REPOSITORY_VARIABLE.
Good finding.
>
> Without this, new use of the_repository in this file would fail to
> compile.
I do not understand this statement.
>
> Signed-off-by: Okhuomon Ajayi <okhuomonajayi54@gmail.com>
> ---
>  diffcore-break.c | 2 --
>  1 file changed, 2 deletions(-)
Re: [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
#493
Author: Okhuomon Ajayi
Date: Wed, 14 Oct 2026 10:57
15 lines
9626 bytes
On Wed, Oct 14, 2026 at 11:25 AM Usman Akinyemi
<usmanakinyemi202@gmail.com> wrote:

> > Without this, new use of the_repository in this file would fail to
> > compile.
> I do not understand this statement.


Thanks for the review.
I meant that since the USE_THE_REPOSITORY_VARIABLE has been removed, any
future use of  the_repository without adding the
USE_THE_REPOSITORY_VARIABLE macro would fail to compile.
I see that my statement above is not clear, I would modify the
wordings and send in a v2.
Re: [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
#495
Author: Usman Akinyemi
Date: Wed, 14 Oct 2026 11:10
13 lines
9363 bytes
>
> Thanks for the review.
> I meant that since the USE_THE_REPOSITORY_VARIABLE has been removed, any
> future use of  the_repository without adding the
> USE_THE_REPOSITORY_VARIABLE macro would fail to compile.
> I see that my statement above is not clear, I would modify the
> wordings and send in a v2.
You do not need to add that. That is literally like explaining if and
else statements
in the commit message. It is not needed.

Thanks.
Re: [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
#496
Author: Okhuomon Ajayi
Date: Wed, 14 Oct 2026 11:12
18 lines
9874 bytes
On Wed, Oct 14, 2026 at 12:11 PM Usman Akinyemi
<usmanakinyemi202@gmail.com> wrote:
> > Thanks for the review.
> > I meant that since the USE_THE_REPOSITORY_VARIABLE has been removed, any
> > future use of  the_repository without adding the
> > USE_THE_REPOSITORY_VARIABLE macro would fail to compile.
> > I see that my statement above is not clear, I would modify the
> > wordings and send in a v2.
> You do not need to add that. That is literally like explaining if and
> else statements
> in the commit message. It is not needed.
>
> Thanks.

Yeah, i would take it out of the commit message in my v2
Thanks
[Outreachy PATCH v2] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
#498
Author: Okhuomon Ajayi
Date: Wed, 14 Oct 2026 11:49
29 lines
8751 bytes
Since 84325f0730 (merge,diff: remove the_repository check before
prefetching blobs, 2026-02-21), diffcore-break.c no longer references
the_repository, so it does not need USE_THE_REPOSITORY_VARIABLE.

Signed-off-by: Okhuomon Ajayi <okhuomonajayi54@gmail.com>
---
Changes since v1:
- Removed the last paragraph of the commit message, as suggested by
  Usman. No code was changed.

 diffcore-break.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/diffcore-break.c b/diffcore-break.c
index b5bcc956cc..71d0e48beb 100644
--- a/diffcore-break.c
+++ b/diffcore-break.c
@@ -2,8 +2,6 @@
  * Copyright (C) 2005 Junio C Hamano
  */
 
-#define USE_THE_REPOSITORY_VARIABLE
-
 #include "git-compat-util.h"
 #include "diffcore.h"
 #include "hash.h"
-- 
2.54.0
Re: [Outreachy PATCH v2] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
#1558
Author: Junio C Hamano
Date: Mon, 26 Oct 2026 18:10
32 lines
13548 bytes
Okhuomon Ajayi <okhuomonajayi54@gmail.com> writes:

> Since 84325f0730 (merge,diff: remove the_repository check before
> prefetching blobs, 2026-02-21), diffcore-break.c no longer references
> the_repository, so it does not need USE_THE_REPOSITORY_VARIABLE.
>
> Signed-off-by: Okhuomon Ajayi <okhuomonajayi54@gmail.com>
> ---
> Changes since v1:
> - Removed the last paragraph of the commit message, as suggested by
>   Usman. No code was changed.

Thanks for writing and reviewing.  Will queue.

>
>  diffcore-break.c | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/diffcore-break.c b/diffcore-break.c
> index b5bcc956cc..71d0e48beb 100644
> --- a/diffcore-break.c
> +++ b/diffcore-break.c
> @@ -2,8 +2,6 @@
>   * Copyright (C) 2005 Junio C Hamano
>   */
>  
> -#define USE_THE_REPOSITORY_VARIABLE
> -
>  #include "git-compat-util.h"
>  #include "diffcore.h"
>  #include "hash.h"
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads