Skip to content

[poc] show git diff information on the gutter - #11985

Closed
romainfrancois wants to merge 7 commits into
cherry-blossomfrom
feature/git_changes_11923
Closed

romainfrancois wants to merge 7 commits into
cherry-blossomfrom
feature/git_changes_11923

Conversation

@romainfrancois

Copy link
Copy Markdown
Contributor

Intent

addresses #11923

Approach

Describe the approach taken and the tradeoffs involved if non-obvious; add an overview of the solution if it's complicated.

Automated Tests

Indicate whether this change includes unit tests or integration tests, or link a work item or pull request to add those tests to another repo. If the change cannot or will not be covered by a test, indicate why.

QA Notes

Add additional information for QA on how to validate the change, paying special attention to the level of risk, adjacent areas that could be affected by the change, and any important contextual information not present in the linked issues.

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

@romainfrancois

Copy link
Copy Markdown
Contributor Author

currently:

image

blue means "modified", i.e there was at least one deletion in the diff chunk
green means "added", i.e. there are only + lines in the chunk.

image

TODO:

  • clicking on the gutter should bring up the chunk, e.g. vscode shows

image

Perhaps we can borrow/reuse what the diff viewer does and have something like this mockup:

image

and some ui to stage, revert ...

@romainfrancois
romainfrancois force-pushed the feature/git_changes_11923 branch from 98b30ad to 801e8f1 Compare September 23, 2022 09:04
@romainfrancois

Copy link
Copy Markdown
Contributor Author

Currently showing a verbatim of the git diff around the line, using a line widget:

image

Without necessarily looking to be as fully featured, we can have something similar to what vscode does here:

image

@romainfrancois
romainfrancois force-pushed the feature/git_changes_11923 branch from cd1374b to f00f246 Compare October 18, 2022 12:28
@jgutman
jgutman force-pushed the feature/git_changes_11923 branch from f00f246 to 18daffe Compare November 17, 2022 17:48
@jgutman
jgutman changed the base branch from main to cherry-blossom November 17, 2022 17:48
@jgutman
jgutman force-pushed the feature/git_changes_11923 branch from 18daffe to fa2c2af Compare November 17, 2022 18:33
@romainfrancois

Copy link
Copy Markdown
Contributor Author

shelving this for now to declutter the pull requests, we may come back to this later, so keeping the branch just in case.

@joannadiong

Copy link
Copy Markdown

Hi, is there any possibility to reconsider this feature enhancement again? A quick view of where a given file has changed since the last commit would be great. Thanks

@kevinushey kevinushey mentioned this pull request Oct 21, 2026
3 of 4 tasks
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

Successfully merging this pull request may close these issues.

2 participants