]> git.ipfire.org Git - thirdparty/git.git/commitdiff
environment: fix typo: 'setup_git_directory_gently'
authorAbhijeet Sonar <abhijeet.nkt@gmail.com>
Fri, 18 Apr 2025 18:58:48 +0000 (00:28 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 18 Apr 2025 21:04:08 +0000 (14:04 -0700)
Above the declaration of git_work_tree_cfg, we have:

  /* This is set by setup_git_dir_gently() and/or git_default_config() */
  char *git_work_tree_cfg;

It can be verified that there is no function called
'setup_git_dir_gently' by running grep on the codebase:

  $ grep -R setup_git_dir_gently .
  ./environment.c:/* This is set by setup_git_dir_gently() and/or git_default_config() */

The comment, introduced in e90fdc39b6 (Clean up work-tree handling), is
the only occurrence of the name 'setup_git_dir_gently'.

It probably meant 'setup_git_directory_gently' as that is a name of a
real function in setup.c. Correct it.

Signed-off-by: Abhijeet Sonar <abhijeet.nkt@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
environment.c

index 9e4c7781be049aea5186f527df9ab906c3c81fea..46053886132ffb4a7a77b53490b9dbb7b21fd525 100644 (file)
@@ -107,7 +107,7 @@ int auto_comment_line_char;
 /* Parallel index stat data preload? */
 int core_preload_index = 1;
 
-/* This is set by setup_git_dir_gently() and/or git_default_config() */
+/* This is set by setup_git_directory_gently() and/or git_default_config() */
 char *git_work_tree_cfg;
 
 /*