ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Git​Diff​View

by predragnikolic MacLinux ALL

A Sublime Text plugin that lets you see all modified files and preview their changes.

Labels git, diff

Details

  • ML 0.7.0
    ML 0.5.0
  • github.​com
  • github.​com
  • 5 months ago
  • 4 hours ago
  • 7 years ago

Installs

  • Total 4K
  • Win 0
  • Mac 2K
  • Linux 2K
Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 2 0 1 1 0 0 1 0 1 1 1 1 0 0 1 0 1 1 2 1 3 0 0 3 0 0 0 1 0 0 1 0 1 0 0 1 1 1 0 0 1 0 0 0
Linux 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 1 1 1 0 0 1 1 1 0 1 0 0 1 1 0 1 1 0 0 0 0 2 0 0 2 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Git Diff View

Get a quick overview of changes before committing them.

Features

  • Show modified files (AKA “Status View”)
  • View diff for a file. (AKA “Diff View”)
  • Stage/Unstage files/hunks
  • Discard changes to files/hunks
  • Goto a file

Example

Getting Started

Open the command palette and run Package Control: Install Package, then select GitDiffView.

Toggle the git diff view with ctrl+shift+g(Linux) or alt+shift+g(Mac) or via the command palette by selecting: Git Diff View: Toggle. The git diff view won't open if there are no git changes.

Keybindings in Status View (the right view)

  • a / space - stage/unstage file
  • d / backspace - dismiss file changes
  • g - open file

Keybindings in Diff View (the left view)

  • a / space - stage/unstage hunk
  • d / backspace - dismiss hunk change

Type of modification will be shown in the git status, next to the file name. Here is a list of the types:

"??" - Untracked
  " A" - Added
  "AM" - Added and Staged
  " M" - Modified
  "MM" - Modified and Staged
  " D" - Deleted
  " R" - Renamed
  " C" - Copied
  "UU" - Unmerged(Conflict)

Workflow Example

HowToUseIt.webm

NOTE: For other commands like git commit, git push, git pull, use a different plugin like Git or GitSavvy.