Skip to content
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

Help for explaining the output of ubuntu diff command #3

Open
zqudm opened this issue Jul 31, 2022 · 1 comment
Open

Help for explaining the output of ubuntu diff command #3

zqudm opened this issue Jul 31, 2022 · 1 comment

Comments

@zqudm
Copy link

zqudm commented Jul 31, 2022

I am use diff command in Ubuntu to compare two java file line by line. Suppose the following is the output of two java file. Obviously, the "c" indicate the change action, but i donot know which line does the " return super.equals(obj);" correspond to ? In other words, does " return super.equals(obj);" map to "ShapeList that = (ShapeList) obj;" or to "return true;" ?

111c111,118
<         return super.equals(obj);
---
>         ShapeList that = (ShapeList) obj;
>         int listSize = size();
>         for (int i = 0; i < listSize; i++) {
>            if (!ShapeUtilities.equal((Shape) get(i), (Shape) that.get(i))) {
>                return false;
>            }
>         }
>         return true;

@Artoria2e5
Copy link

It's replaced by the whole big > chunk. Left hand side of c is old line number, right hand side is new line number range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants