sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
610 stars 66 forks source link

Setting for the number of visible lines in side-by-side diff #207

Closed abeham closed 1 week ago

abeham commented 1 week ago

Currently this setting is not persisted and is forgotten as you change the file to view the next diff. Bonus would be to also have the option to compare the full file with default jumped to first diff.

love-linger commented 1 week ago

Currently this setting is not persisted and is forgotten as you change the file to view the next diff

I've pushed a commit faabfd6b80d07ad71f73d26d6919ece1a80f71d9 to this feature. You can use buttons in the diff view tool bar to increase or decrese the number of visible context lines. And you can also set the number of visible diff context lines from Preference dialog directly.

You can try the latest build from https://github.com/sourcegit-scm/sourcegit/actions.

Bonus would be to also have the option to compare the full file with default jumped to first diff.

To compare the full file, I recommand you using an extern diff/merge tool.

  1. Open the Preference window, and go to DIFF/MERGE TOOL page.
  2. Choose a diff/merge tool you perfered. image
  3. After that you can use this external tool to view changes by a simple click image