atom / git-diff

Diff markers in Atom's gutter
MIT License
102 stars 41 forks source link

Feature: Toggle between changes since last commit and changes since commit before last #122

Closed brettz9 closed 5 years ago

brettz9 commented 7 years ago

Prerequisites

Description

It'd be awesome to be able to toggle between a diff of changes since the last commit and a diff between the current state of changes and the commit before last.

I will often work on a branch and commit and push the changes to store my changes, but I frequently go back and amend the commit and force an overwriting of the branch.

When continuing to work on the partially-completed commit, I cannot use git-diff to see the recently modified lines made since I have already committed my recent work.

a7madgamal commented 7 years ago

I strongly +1 this However, I suggest we make it more flexible and add an option to pick ANY commit from the history and temporarily 'dirtify' atom as if these changes are still not committed I think of this every single time I work in a new branch

I'm so excited for this that I decided to create my first atom package to do it. I would love to hear your feedback on this and of course I can offer my help to implement it in this package

a7madgamal commented 7 years ago

in simple and basic points, here is the problem:

also in simple and basic points, a possible solution:

brantwedel commented 7 years ago

A quick toggle between last commit and upstream branch would be a great first step.

Kivylius commented 6 years ago

This would make tracking changes since x-branch so much easier. +1 on this. Really need this in.

dmaz commented 6 years ago

sublime's gitgutter has the ability to compare against any commit, branch or origin. this is reflected through your whole project... so in atom the file tree view, gutter decorations and minimaps should reflect changes since the new chosen commit.

Often when I start digging into a big multi file change I hold off committing just to keep my focus I the files that changed. because of course, once I do commit all that nice information is gone fromt the editor.

maxbrunsfeld commented 5 years ago

This issue was moved to atom/atom#18000