Menu

#112 cloc-1.62 --diff produces wrong results, dependent on how to specify paths

v1.63
closed
nobody
None
1
2015-06-27
2014-08-20
tksh
No

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.

1 Attachments

Discussion

  • Al Danial

    Al Danial - 2014-08-21
    • status: open --> accepted
     
  • Al Danial

    Al Danial - 2014-08-21

    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.

     
  • Al Danial

    Al Danial - 2014-10-20
    • status: accepted --> pending
     
  • Al Danial

    Al Danial - 2014-10-20

    Fixed with svn commit 415. The problem had to do with the handling of \ file path separators.

     
  • Al Danial

    Al Danial - 2015-06-27
    • status: pending --> closed
     
  • Al Danial

    Al Danial - 2015-06-27

    v1.64 released

     

Anonymous
Anonymous

Add attachments
Cancel