Show diff stat in status bar

Include the number of lines added and removed for
new and modified files
This commit is contained in:
Kevin Sawicki
2012-12-27 10:41:02 -08:00
parent 747b2b6bad
commit 219aaca0f5
6 changed files with 108 additions and 4 deletions

View File

@@ -63,3 +63,7 @@ class Git
checkoutHead: (path) ->
@repo.checkoutHead(@relativize(path))
getDiffStats: (path) ->
stats = @repo.getDiffStats(@relativize(path))
stats or {'added': 0, 'deleted': 0}