]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'ua/call-repo-config-with-possibly-null-repository'
authorJunio C Hamano <gitster@pobox.com>
Tue, 29 Apr 2025 21:21:27 +0000 (14:21 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Apr 2025 21:21:27 +0000 (14:21 -0700)
commita501213402ec1bf298596f5c93ab21bf2a732bf0
treeebf79bd08bae88e7fba8c6d3656b0a0312821f95
parent8bb81ccfad03ee06a88b9acebba61823bd459999
parentb502a648ef185e7e24ef80097330c44cca510264
Merge branch 'ua/call-repo-config-with-possibly-null-repository'

Since a call to repo_config() can be called with repo set to NULL
these days, a command that is marked as RUN_SETUP in the builtin
command table does not have to check repo with NULL before making
the call.

* ua/call-repo-config-with-possibly-null-repository:
  builtin/difftool: remove unnecessary if statement
  builtin/add: remove unnecessary if statement
builtin/difftool.c