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

Feature Request: Add lines of context to git.foldUnchanged #169

Open
CallumHoward opened this issue Mar 11, 2021 · 2 comments
Open

Feature Request: Add lines of context to git.foldUnchanged #169

CallumHoward opened this issue Mar 11, 2021 · 2 comments

Comments

@CallumHoward
Copy link

When comparing with a diff on GitHub it folds unchanged and shows 3 lines of context.
It would be awesome if there was a configuration option to specify how many lines of context to add for the git.foldUnchanged command.

I guess it might need one pass to merge ranges that are less than apart

@chemzqm
Copy link
Member

chemzqm commented Mar 12, 2021

how many lines of context to add for the git.foldUnchanged command.

Can't understand, could you explain?

@CallumHoward
Copy link
Author

I would like to see 3 lines above and below the changed lines when using the git.foldChanged command. This is like the -U3 flag of git diff -U3. Currently the command shows 0 lines below and above (ie. 0 context).

It would also be great if the number was also configurable to any number, not just 3.

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