-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The result of diff is different from the result of git diff #765
Comments
Point me to the repo with these commits. Or, if that's not practical, find a common repo we can both access which demonstrates the problem you have in mind. |
Okay, I'll get a common repo when I have time, thanks for your answer |
Well ! I know it. Because I change file-name in one commit, |
git returns a "similarity index" on with diff |
all right, is this feature possible? |
It is possible, but as to when, I can't say. The cleanest thing to do will be close this issue then create a new one specifically requesting this feature, ie, "implement |
Describe the bug
Comparing the two commitIds with git diff and cloc --git-diff-rel respectively, the results seem to be completely different.
**cloc; OS; Centos
To Reproduce
![image](https://private-user-images.githubusercontent.com/76463236/266960676-3614cea4-aa1a-48d8-8f6d-5b4a9ef9d98b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NjU2NjgsIm5iZiI6MTcyMzk2NTM2OCwicGF0aCI6Ii83NjQ2MzIzNi8yNjY5NjA2NzYtMzYxNGNlYTQtYWExYS00OGQ4LThmNmQtNWI0YTllZjlkOThiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA3MTYwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg0ZDE0OTJjMjNjYzU5YjRiOGQ4ODMwZDk2ODMwMTM4ZWIzZjY1OTZmNGY0ZWI2NWNjOTIzMWYxMWI5NTYyMmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.BedHY9-4JyHDX3qzmkG95C2IbbCirF4DTeHC7GD6P0o)
git diff --shortstat ff2a43717e7f9d2d3966b155912c0c4b9b3009da 18d4f379a1424c4a23995b6e1cf9a1f939b10379
cloc --git-diff-rel ff2a43717e7f9d2d3966b155912c0c4b9b3009da 18d4f379a1424c4a23995b6e1cf9a1f939b10379
The text was updated successfully, but these errors were encountered: