]> git.ipfire.org Git - thirdparty/git.git/commitdiff
dir.h: remove duplicate forward declaration of struct repository
authorAbhijeetsingh Meena <abhijeet040403@gmail.com>
Tue, 11 Mar 2025 14:59:35 +0000 (14:59 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 11 Mar 2025 22:13:21 +0000 (15:13 -0700)
The `struct repository;` forward declaration appears twice in `dir.h`:
once at line 10 and again at line 46. This duplication is unnecessary
and likely unintentional.

Removing the second declaration has no impact on compilation, as verified
by a clean build.

Signed-off-by: Abhijeetsingh Meena <abhijeet040403@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.h

diff --git a/dir.h b/dir.h
index ad06682fd54b3e7ae47d6f8a8d80048da0324f01..82c249fad9f9f3c0509a9ce1d8d70944f3be96a7 100644 (file)
--- a/dir.h
+++ b/dir.h
@@ -43,7 +43,6 @@ struct repository;
  *
  */
 
-struct repository;
 
 struct dir_entry {
        unsigned int len;