A Sublime Text 2/3 plugin to see git diff in gutter
Clone or download
deathaxe Fix: avoid line height shifting by displaying annotations
If the line_padding_top and line_padding_bottom setting is 0,
inline phantoms cause the line height to shift due to a little default
padding/margin.
Latest commit 410b290 Sep 13, 2018
Permalink
Failed to load latest commit information.
.github Fix: Typo Jun 1, 2018
docs DOC: typo Sep 7, 2018
messages Cut 1.9.3 Sep 12, 2018
modules Fix: avoid line height shifting by displaying annotations Sep 13, 2018
tests Internal: Update json_test Nov 2, 2017
themes Fix: Default theme icon resolution and visibility May 14, 2017
.gitattributes README: Move Documentation to GitHub Pages Jun 20, 2018
.gitignore README: Move Documentation to GitHub Pages Jun 20, 2018
Default (Linux).sublime-keymap Enhancement: Add a command with keybinding to copy content from commit Sep 12, 2017
Default (OSX).sublime-keymap Enhancement: Add a command with keybinding to copy content from commit Sep 12, 2017
Default (Windows).sublime-keymap Enhancement: Add a command with keybinding to copy content from commit Sep 12, 2017
Default.sublime-commands Fix: Typo Oct 16, 2017
GitGutter.sublime-settings Enhancement: Add support for diff --ignore-cr-at-eol Sep 7, 2018
LICENSE update license Dec 12, 2012
Main.sublime-menu Enhancement: Use own command to enable/disable GitGutter per view Oct 14, 2017
Preferences.sublime-settings Internal: Satisfy unit tests of Sublime JSON resources Sep 12, 2017
Preferences.sublime-settings-hints Enhancement: Add support for diff --ignore-cr-at-eol Sep 7, 2018
README.md README: Move Documentation to GitHub Pages Jun 20, 2018
VERSION Cut 1.9.3 Sep 12, 2018
dependencies.json Internal: Drop support for mdpopups 1.x Oct 14, 2017
gitgutter_popup.css Fix: Use Segoe UI Symbol for toolbars Apr 5, 2018
makefile README: Move Documentation to GitHub Pages Jun 20, 2018
messages.json Cut 1.9.3 Sep 12, 2018
mkdocs.yml DOC: Fix MkDocs deprecation warning Sep 7, 2018
plugin.py Enhancement: Handle module reload exceptions gracefully May 26, 2017
release.py Internal: Add missing utf-8 coding hints Apr 4, 2018
release.sublime-commands Internal: Refactor built and release system Sep 14, 2017
setup.cfg Internal: Add setup.cfg to configure linters Oct 2, 2017
unittesting.json Revert a bunch of latest fixes due to missing review and some regress… Dec 4, 2016

README.md

GitGutter

A Sublime Text plug-in to show information about files in a git repository:

  1. Gutter Icons indicating inserted, modified or deleted lines
  2. Diff Popup with details about modified lines
  3. Status Bar Text with information about file and repository

and provides some commands like:

  1. Goto Change to navigate between modified lines
  2. Copy from Commit to copy the orignial content from the commit
  3. Revert to Commit to revert a modified hunk to the original state in a commit

Gutter Icons & Status Bar Text

screenshot

The icons of the default theme have the following meaning:

Icon Description
inserted inserted line
changed modified line
deleted deleted region borders
ignored ignored file
untracked untracked file

Diff Popup

The diff popup shows the orignal content from the commit or the differences between it and the working content.

requires Sublime Text 3 Build 3124+ and mdpopups 2.0.0+

diff_popup_screenshot

The toolbar provides some commands to interact with or modify the changes.

symbol meaning of the symbol
× close the popup
goto to first change
goto to previous change
goto to next change
≈, ≉ enable/disable difference highlighting
copy the orignial content from the commit
revert a modified hunk to the original state in a commit

Documentaion

Please read https://jisaacks.github.io/GitGutter/ for detailed information about