git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] remove unnecessary if statement
@ 2025-03-29 11:59 Usman Akinyemi
  2025-03-29 11:59 ` [PATCH 1/1] builtin/update-server-info: " Usman Akinyemi
  2025-04-06 12:14 ` [PATCH v2 0/1] " Usman Akinyemi
  0 siblings, 2 replies; 9+ messages in thread
From: Usman Akinyemi @ 2025-03-29 11:59 UTC (permalink / raw)
  To: git, christian.couder; +Cc: gitster, johncai86, me, ps, shejialuo, philip

In an earlier patch[1] which has been merged to the master,
We checked `repo` is not NULL before making call to `repo_config()`.
Later, in another patch series[2] which has been merged to master,
`repo_config()` was taught to allow `repo` to be NULL.

So there is not need for checking if the `repo` is NULL before calling
repo_config() in the earlier patch.

Also, Patrick suggested having the test inside the
"t1517-outside-repo.sh"[3] instead of having it in the individual test
files like[2] and I also think it is a good approach as we will
have all such tests in one place. So, for this patch, I added the
test inside the "t1517-outside-repo.sh". If this is accepted, I will
move the test for previous builtin cmd which has already been merged
to master to "t1517-outside-repo.sh" file.

[1] https://public-inbox.org/git/20250210181103.3609495-1-usmanakinyemi202@gmail.com/
[2] https://public-inbox.org/git/20250307233543.1721552-1-usmanakinyemi202@gmail.com/
[3] https://public-inbox.org/git/Z9vCDFRUG7IzU_AG@pks.im/
 
Usman Akinyemi (1):
  builtin/update-server-info: remove unnecessary if statement

 builtin/update-server-info.c | 4 ++--
 t/t1517-outside-repo.sh      | 7 +++++++
 2 files changed, 9 insertions(+), 2 deletions(-)

-- 
2.49.0


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

end of thread, other threads:[~2025-04-07 19:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-29 11:59 [PATCH 0/1] remove unnecessary if statement Usman Akinyemi
2025-03-29 11:59 ` [PATCH 1/1] builtin/update-server-info: " Usman Akinyemi
2025-03-31  7:16   ` Patrick Steinhardt
2025-04-06 12:14 ` [PATCH v2 0/1] " Usman Akinyemi
2025-04-06 12:14   ` [PATCH v2 1/1] builtin/update-server-info: " Usman Akinyemi
2025-04-07  0:24     ` Eric Sunshine
2025-04-07 15:49       ` Junio C Hamano
2025-04-07 19:58   ` [PATCH v2 0/1] " Usman Akinyemi
2025-04-07 19:58     ` [PATCH 1/1] builtin/update-server-info: " Usman Akinyemi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).