Git development
 help / color / mirror / Atom feed
* [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
@ 2026-10-14  8:12 Okhuomon Ajayi
  2026-10-14 10:24 ` Usman Akinyemi
  2026-10-14 11:49 ` [Outreachy PATCH v2] " Okhuomon Ajayi
  0 siblings, 2 replies; 7+ messages in thread
From: Okhuomon Ajayi @ 2026-10-14  8:12 UTC (permalink / raw)
  To: git
  Cc: christian.couder, usmanakinyemi202, siddharthasthana31,
	kaartic.sivaraam, Okhuomon Ajayi

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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
  2026-10-14  8:12 [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE Okhuomon Ajayi
@ 2026-10-14 10:24 ` Usman Akinyemi
  2026-10-14 10:57   ` Okhuomon Ajayi
  2026-10-14 11:49 ` [Outreachy PATCH v2] " Okhuomon Ajayi
  1 sibling, 1 reply; 7+ messages in thread
From: Usman Akinyemi @ 2026-10-14 10:24 UTC (permalink / raw)
  To: Okhuomon Ajayi
  Cc: git, christian.couder, siddharthasthana31, kaartic.sivaraam

>
> 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(-)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
  2026-10-14 10:24 ` Usman Akinyemi
@ 2026-10-14 10:57   ` Okhuomon Ajayi
  2026-10-14 11:10     ` Usman Akinyemi
  0 siblings, 1 reply; 7+ messages in thread
From: Okhuomon Ajayi @ 2026-10-14 10:57 UTC (permalink / raw)
  To: Usman Akinyemi
  Cc: git, christian.couder, siddharthasthana31, kaartic.sivaraam

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.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
  2026-10-14 10:57   ` Okhuomon Ajayi
@ 2026-10-14 11:10     ` Usman Akinyemi
  2026-10-14 11:12       ` Okhuomon Ajayi
  0 siblings, 1 reply; 7+ messages in thread
From: Usman Akinyemi @ 2026-10-14 11:10 UTC (permalink / raw)
  To: Okhuomon Ajayi
  Cc: git, christian.couder, siddharthasthana31, kaartic.sivaraam

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
  2026-10-14 11:10     ` Usman Akinyemi
@ 2026-10-14 11:12       ` Okhuomon Ajayi
  0 siblings, 0 replies; 7+ messages in thread
From: Okhuomon Ajayi @ 2026-10-14 11:12 UTC (permalink / raw)
  To: Usman Akinyemi
  Cc: git, christian.couder, siddharthasthana31, kaartic.sivaraam

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Outreachy PATCH v2] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
  2026-10-14  8:12 [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE Okhuomon Ajayi
  2026-10-14 10:24 ` Usman Akinyemi
@ 2026-10-14 11:49 ` Okhuomon Ajayi
  2026-10-26 18:10   ` Junio C Hamano
  1 sibling, 1 reply; 7+ messages in thread
From: Okhuomon Ajayi @ 2026-10-14 11:49 UTC (permalink / raw)
  To: git
  Cc: christian.couder, usmanakinyemi202, siddharthasthana31,
	kaartic.sivaraam, Okhuomon Ajayi

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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [Outreachy PATCH v2] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE
  2026-10-14 11:49 ` [Outreachy PATCH v2] " Okhuomon Ajayi
@ 2026-10-26 18:10   ` Junio C Hamano
  0 siblings, 0 replies; 7+ messages in thread
From: Junio C Hamano @ 2026-10-26 18:10 UTC (permalink / raw)
  To: Okhuomon Ajayi
  Cc: git, christian.couder, usmanakinyemi202, siddharthasthana31,
	kaartic.sivaraam

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"

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-10-26 18:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-14  8:12 [Outreachy PATCH] diffcore-break: remove USE_THE_REPOSITORY_VARIABLE Okhuomon Ajayi
2026-10-14 10:24 ` Usman Akinyemi
2026-10-14 10:57   ` Okhuomon Ajayi
2026-10-14 11:10     ` Usman Akinyemi
2026-10-14 11:12       ` Okhuomon Ajayi
2026-10-14 11:49 ` [Outreachy PATCH v2] " Okhuomon Ajayi
2026-10-26 18:10   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox