This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Feature proposal: Editable Diff #1882
base: master
Are you sure you want to change the base?
Feature proposal: Editable Diff #1882
Changes from 17 commits
ba1bde5
9b07f12
a9edab9
7bbaf1c
9e3872e
a62a1c8
1e27a6c
2621bc8
5653d6d
450ca9e
ee8c43d
6dff853
f86ddd1
fe76c19
f3ed368
740b205
3182a33
161667f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be useful to also show the modified indicator (blue dot) on the tab? Just like for regular files. Then it's easier to see if a diff has unsaved edits when it's not the active tab or the file header is "scrolled out of view".
I might be even enough to only have the indicator on the tabs, even for multi-file diffs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
another pro for this approach: some users have asked for split diffs. see #816 and #1423.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! Be able to edit staged changes would make the "All staged changes" diff (commit preview) more useful. Like before committing, you might spot a typo and don't have to 1. unstage 2. edit 3. stage again and can directly make the correction. Although it's probably a bit against our "stay true to Git" vision. 😬
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe comments should be visible when the diff is in an editable state, because it would be really useful to our users to be able to address comments while also seeing the comments inline.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. 👍 Reading a comment and then be able to make changes right there without switching to some sort of "edit mode" would be nice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit on the fence, but tend towards a "no". It might depends on the "can staged changes be edited?" question above.