]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Makefile & .gitignore: ignore & clean "git.res", not "*.res"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 5 Jul 2022 13:46:56 +0000 (15:46 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jul 2022 19:24:43 +0000 (12:24 -0700)
Adjust the overly broad .gitignore and "make clean" rule added in
ce39c2e04ce (Provide a Windows version resource for the git
executables., 2012-05-24).

For now this is merely a correctness fix, but needed because a
subsequent commit will want to check in *.res files elsewhere in the
tree, which we shouldn't have to "git add -f".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitignore
Makefile

index a45221576418e77de53f2776912ad62cce00c85b..42fd7253b4435e014690ad173125e2a291c2ca5a 100644 (file)
 /git-worktree
 /git-write-tree
 /git-core-*/?*
+/git.res
 /gitweb/GITWEB-BUILD-OPTIONS
 /gitweb/gitweb.cgi
 /gitweb/static/gitweb.js
 *.hcc
 *.obj
 *.lib
-*.res
 *.sln
 *.sp
 *.suo
index c1d02f044993a80c03d4a5b35a66a034669dc3a3..1ccf13595deb0f2b1ca518e8920e24944350e9e9 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -3409,7 +3409,7 @@ cocciclean:
 clean: profile-clean coverage-clean cocciclean
        $(RM) -r .build
        $(RM) po/git.pot po/git-core.pot
-       $(RM) *.res
+       $(RM) git.res
        $(RM) $(OBJECTS)
        $(RM) $(LIB_FILE) $(XDIFF_LIB) $(REFTABLE_LIB) $(REFTABLE_TEST_LIB)
        $(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git$X