Steps To Reproduce
git clone https://github.com/skvadrik/re2c.git
cd re2c
git status
Expected Result
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
Actual Result
$ 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 checkout -- <file>..." to discard changes in working directory)
modified: re2c/test/ctx.S.c
modified: re2c/test/scanner.S.c
no changes added to commit (use "git add" and/or "git commit -a")
Notes
Reproducible with re2c version 0.15.2.
OS: Apple OS X El Capitan (10.11.1)
Developer Tools: Xcode 7.1.1 (7B1005)
$ git --version
git version 2.6.3
This issue is caused by files ctx.S.c and scanner.S.c which have counterparts ctx.s.c and scanner.s.c (note case of s letter):
$ git ls-tree HEAD re2c/test/ | grep [/]ctx[.]
100644 blob 6f64dcce50309afc24a81bab1c4c72fd3f8992ee re2c/test/ctx.S.c
100644 blob 802df5a34d39465b48ca39a757cf23ad307851a5 re2c/test/ctx.S.re
100644 blob 08a50810630f1829fd1027257a48563c03c3c356 re2c/test/ctx.b.c
100644 blob 802df5a34d39465b48ca39a757cf23ad307851a5 re2c/test/ctx.b.re
100644 blob 198d5aa09fe52cd3ec03aa58b68ce895dc46fe29 re2c/test/ctx.c
100644 blob 802df5a34d39465b48ca39a757cf23ad307851a5 re2c/test/ctx.re
100644 blob d2798d4468e29d167a2d97f41e9ad63686c4c282 re2c/test/ctx.s.c
100644 blob 802df5a34d39465b48ca39a757cf23ad307851a5 re2c/test/ctx.s.re
$ git ls-tree HEAD re2c/test/ | grep [/]scanner[.]
100644 blob 6296a41971513cc4ddb83fa0408b37ff5689a301 re2c/test/scanner.S.c
100644 blob 1fd5221dd1a2c4f66e71f26a4c64d1261826e9b6 re2c/test/scanner.S.re
100644 blob 362fd45580b753422c19e7163ad3463cedb01c82 re2c/test/scanner.c
100644 blob 47339ccbd184f7d2fd15dc8af1b2a5ea7cb74189 re2c/test/scanner.fs.c
100644 blob 9a26eba70f97080933cfe1b373069d88fcb7f670 re2c/test/scanner.fs.re
100644 blob 1fd5221dd1a2c4f66e71f26a4c64d1261826e9b6 re2c/test/scanner.re
100644 blob 0493dd948947e3af5700e67f791f5c69ad030819 re2c/test/scanner.s.c
100644 blob 1fd5221dd1a2c4f66e71f26a4c64d1261826e9b6 re2c/test/scanner.s.re
By default OS X comes with case-insensitive HFS+ file system, that is why git reports wrong status.
Steps To Reproduce
git clone https://github.com/skvadrik/re2c.gitcd re2cgit statusExpected Result
$ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory cleanActual Result
Notes
Reproducible with
re2cversion0.15.2.OS: Apple OS X El Capitan (10.11.1)
Developer Tools: Xcode 7.1.1 (7B1005)
This issue is caused by files
ctx.S.candscanner.S.cwhich have counterpartsctx.s.candscanner.s.c(note case ofsletter):By default OS X comes with case-insensitive HFS+ file system, that is why
gitreports wrong status.