redguardtoo / company-ctags

Fastest Emacs auto-completion using Company and Ctags
GNU General Public License v3.0
56 stars 3 forks source link

warning: the following paths have collided #17

Closed owensys closed 3 months ago

owensys commented 3 months ago

windows下文件名不区分大小写,tags和TAGS文件冲突,导致始终处于modified状态

$ git clone  https://github.com/redguardtoo/company-ctags
Cloning into 'company-ctags'...
remote: Enumerating objects: 129, done.
remote: Counting objects: 100% (30/30), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 129 (delta 20), reused 22 (delta 13), pack-reused 99
Receiving objects: 100% (129/129), 124.26 KiB | 193.00 KiB/s, done.
Resolving deltas: 100% (69/69), done.
warning: the following paths have collided (e.g. case-sensitive paths
on a case-insensitive filesystem) and only one from the same
colliding group is in the working tree:

  'test/TAGS'
  'test/tags'

$ cd company-ctags/

$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   test/TAGS

no changes added to commit (use "git add" and/or "git commit -a")

$ git restore test/TAGS

$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        modified:   test/tags

no changes added to commit (use "git add" and/or "git commit -a")
redguardtoo commented 3 months ago

或者使用vim格式或者使用emacs格式,没必要两个都用.