{"thread":{"id":"52217","subject":"git check-ignore bug reports","startedAt":"2019-11-08T08:49:57Z","lastAt":"2019-11-08T08:49:57Z","messageCount":1,"participants":["L"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"385766","messageId":"60f40fd7.5ff5.16e4a26bded.Coremail.13411091171@163.com","threadId":"52217","inReplyTo":null,"subject":"git check-ignore bug reports","fromName":"L","fromEmail":"13411091171@163.com","sentAt":"2019-11-08T08:34:43Z","receivedAt":"2019-11-08T08:49:57Z","isPatch":false,"sender":{"key":"13411091171@163.com","avatar":null},"body":"When the gitignore file has consecutive ^M$ special symbols, running the \"git check-ignore '<pathname>/'\" command will prompt '<pathname>/' exists (even if it doesn't exist), and prompts '<pathname>/' in the last consecutive ^M$ location.\nMy English is very bad, please forgive me.\n\nenvironment:\n  windows10\n  git version 2.23.0.windows.1\n\nfor example:\n\n.gitignore normal view\n---------------------------\n### Android template\n# Built application files\n*.apk\n*.ap_\n*.aab\n\n# Files for the ART/Dalvik VM\n*.dex\n\n# Java class files\n*.class\n\n# Generated files\nbin/\ngen/\nout/\nrelease/\n\n# Gradle files\n.gradle/\nbuild/\n---------------------------\n\n.gitignore detailed view\n---------------------------\n     1  ### Android template^M$\n     2  # Built application files^M$\n     3  *.apk^M$\n     4  *.ap_^M$\n     5  *.aab^M$\n     6  ^M$\n     7  # Files for the ART/Dalvik VM^M$\n     8  *.dex^M$\n     9  ^M$\n    10  # Java class files^M$\n    11  *.class^M$\n    12  ^M$\n    13  # Generated files^M$\n    14  bin/^M$\n    15  gen/^M$\n    16  out/^M$\n    17  release/^M$\n    18  ^M$\n    19  # Gradle files^M$\n    20  .gradle/^M$\n    21  build/^M$\n---------------------------\n\n\nproject directory\n---------------------------\ndrwxr-xr-x 1 L 197121   0 11月  8 16:13 ./\ndrwxr-xr-x 1 L 197121   0 11月  8 16:12 ../\ndrwxr-xr-x 1 L 197121   0 11月  8 16:13 .git/\n-rw-r--r-- 1 L 197121 226 11月  8 16:17 .gitignore\ndrwxr-xr-x 1 L 197121   0 11月  8 16:12 .idea/\n---------------------------\n\n\nrun git check-ignore command\n---------------------------\n$ git check-ignore -v '.idea/'\n.gitignore:18:  .idea/\n$ git check-ignore -v '.idea/sfsf/'\n.gitignore:18:  .idea/sfsf/\n---------------------------"}]}