Github: Inline diffs

Created on 23 Mar 2016  路  4Comments  路  Source: atom/github

https://atom.io/packages/git-diff-details is a cool new package using block decorations so show diffs inline. We should/could probably do something similar, but prettier because @simurai.

68747470733a2f2f6769746875622e636f6d2f73616d752f6769742d646966662d64657461696c732f626c6f622f6d61737465722f64656d6f2e706e673f7261773d74727565

Most helpful comment

Sorry for bumping this thread, the latest version of vscode includes this feature, plus the git-diff-details package is not maintained (doesn't work anymore).

It would be really cool to click on the gutter with the colored diff status (green, yellow, red) and be able to see the diff, plus have the ability to quickly revert the action or copy the previous state.

Though I'm not sure whether this should be included in the github package or git-diff.

All 4 comments

Looks pretty handy. I often want to see the old version and sometimes discard my changes.

I would probably prefer a split diff, like 3.2 Split Diff. Then when you edit code, you don't get interrupted with the diffs, but you can still see them at any time on the left.

Of course on smaller monitors having "unified diffs" need less horizontal space.. so both would be nice.

Yeah, I imagine it would be similar to .com where some prefer unified diffs and some prefer split diffs.

Sorry for bumping this thread, the latest version of vscode includes this feature, plus the git-diff-details package is not maintained (doesn't work anymore).

It would be really cool to click on the gutter with the colored diff status (green, yellow, red) and be able to see the diff, plus have the ability to quickly revert the action or copy the previous state.

Though I'm not sure whether this should be included in the github package or git-diff.

Weird that this was closed. This feature is heavily missed in Atom. Sure, there are a couple packages for it, but I think better solutions could be implemented by the actual team.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JamesChevalier picture JamesChevalier  路  4Comments

HidekiHokuto picture HidekiHokuto  路  4Comments

ccavolt picture ccavolt  路  3Comments

megaultrachicken picture megaultrachicken  路  4Comments

UziTech picture UziTech  路  4Comments