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

如果完全一样的两个文件可不可以也展示出来能,或者说有没有api #226

Open
gamelifezhao opened this issue Sep 9, 2024 · 1 comment

Comments

@gamelifezhao
Copy link

No description provided.

@otakustay
Copy link
Owner

理论上你可以自己造一个Hunk对象,里面所有的Change对象都是normal类型,然后拿去显示
另一个方法,如果你的diff都是前端生成的(2个字符串生成diff串),那diff库通常有个类似context的参数指定diff前后不变的行显示多少,给它来个Infinity或者非常大的数字

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