cloc-1.62 --diff produces wrong results, dependent on how to specify paths
Brought to you by:
alnd
Hi,
cloc-1.62 --diff between two same directories seems to produce wrong results
dependent on how to specify paths, particularly on Windows.
cloc-1.62.exe --skip-uniqueness --diff org nomod
=> OK (2 same files)
cloc-1.62.exe --skip-uniqueness --diff C:\tmp\cloc\test02\org C:\tmp\cloc\test02\nomod
=> NG (2 files added, 2 files removed)
Attached is a test set and other results including cloc-1.60.
Anonymous
Thanks for the investigation. I'm glad that at least the Linux version works on the self diff; this suggests that if file path handling is done correctly on Windows it can be made to work there too.
Fixed with svn commit 415. The problem had to do with the handling of \ file path separators.
v1.64 released