An alternative for git-diff
package for :atom: editor.
git-diff-plus
covers every functionality provided by git-diff
, which comes with Atom by default, but also provides lots of some additional features and various improvements.
There are mainly three advantages below for you to use git-diff-plus
over git-diff
.
git-diff-plus
:
git-diff
can only shows diffs in files under a current project ...git-diff-plus
package: Follow either way below
apm install git-diff-plus
File -> Settings -> Install
and search for git-diff-plus
and click Install
buttongit-diff
package: Follow either way
apm disable git-diff
File -> Settings -> Packages
and search for git-diff
and click Disable
buttonNotes:
git-diff
package is bundled with Atom by defaultgit-diff
is recommended to avoid duplicated works and collisions of the commands
git-diff-plus
covers every functionality provided by git-diff
git-diff-plus
would automatically detect if git-diff
is activated and if so shows buttons to disable it, thus you can even skip step 3.Config: Show Icons In Editor Gutter
|
false (default) |
true |
---|---|---|
Gutter |
|
|
Git Diff Plus: Toggle Diff List
commandShow Diffs In Status Bar
to false
Git Diff Plus: Move To Previous Diff
(Alt-G Up): move the cursor to the previous diff in the editorGit Diff Plus: Toggle Diff List
(Alt-G D): see all the diffs in a current active editorGit Diff Plus: Rebuild Repository Cache
: invoke this command when you find diffs for an newly added repository is not recognizedgit-diff
?There is a difficult issue around finding a correct .git repository actually, and the Atom's core team is now trying to solve this in an higher level, thus the specific issues around it are kind of pending.
But still I found the fixes for them are really useful even though they are not perfect, so git-diff-plus
is here as a community package. In a sense, this package serves as a temporal remedy for the specific issues like:
I'm really sure the logic to find/subscribe .git repository used in git-diff-plus
is much more better than the one used in git-diff
, still it may fail to find/subscribe a repository.
Even this package works very fine as far as I've used, but in a case you encounter a problem, please help me find issues by reporting it !
This package is under MIT License, which is the modified version of the original one of git-diff
package.
This package is originally a clone of git-diff
package.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.