-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diffstat #672
Merged
Merged
Diffstat #672
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
%YAML 1.2 | ||
--- | ||
# http://www.sublimetext.com/docs/3/syntax.html | ||
name: GitSavvy Diffstat | ||
hidden: true | ||
scope: git-savvy.commit-diffstat | ||
contexts: | ||
main: | ||
- match: ^ (.+) \| +(\d+) (\+*)(-*)$\n? | ||
comment: author and date info | ||
scope: meta.commit-info.diffstat.line | ||
captures: | ||
1: meta.filename.diff | ||
2: constant.numeric.lines-count.git-savvy | ||
3: markup.inserted.git-savvy.add-block.content | ||
4: markup.deleted.git-savvy.delete-block.content | ||
|
||
- match: (\d+) files? changed | ||
comment: Count files changed | ||
scope: meta.commit-info.files.changes | ||
captures: | ||
1: constant.numeric.lines-count.git-savvy | ||
|
||
- match: (\d+) insertions?\(\+\) | ||
comment: Count of lines insertions | ||
scope: markup.inserted.git-savvy.add-block.content | ||
captures: | ||
1: constant.numeric.lines-count.git-savvy | ||
|
||
- match: (\d+) deletions?\(-\) | ||
comment: Count of lines deletions | ||
scope: markup.deleted.git-savvy.delete-block.content | ||
captures: | ||
1: constant.numeric.lines-count.git-savvy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# SYNTAX TEST "Packages/GitSavvy/syntax/show_commit.sublime-syntax" | ||
commit b79e485c7a3e589c7866555eca6fd9ec7388b5cb | ||
Author: Simon <simon.toivo@telhaug.no> | ||
AuthorDate: Mon Jun 12 19:45:23 2017 +0200 | ||
Commit: Simon <simon.toivo@telhaug.no> | ||
CommitDate: Mon Jun 12 19:58:27 2017 +0200 | ||
|
||
Blame popup option 2 | ||
--- | ||
# <- git-savvy.commit meta.commit-header-and-stat-splitter | ||
Default.sublime-keymap | 22 +- | ||
# ^ meta.filename.diff | ||
# ^ meta.filename.diff | ||
# ^ constant.numeric.lines-count.git-savvy | ||
# ^ constant.numeric.lines-count.git-savvy | ||
# ^ markup.inserted.git-savvy.add-block.content | ||
# ^ markup.deleted.git-savvy.delete-block.content | ||
# <- meta.commit-info.diffstat.line | ||
common/ui.py | 3 --- | ||
# ^ constant.numeric.lines-count.git-savvy | ||
# ^ markup.deleted.git-savvy.delete-block.content | ||
# ^ markup.deleted.git-savvy.delete-block.content | ||
# <- meta.commit-info.diffstat.line | ||
popups/bl|me_view.html | 8 ++++ | ||
# ^ markup.inserted.git-savvy.add-block.content | ||
# ^ markup.inserted.git-savvy.add-block.content | ||
# <- meta.commit-info.diffstat.line | ||
# ^ meta.filename.diff | ||
# ^ meta.filename.diff | ||
# ^ meta.filename.diff | ||
33 files changed, 5 insertions(+), 8 deletions(-) | ||
#^ git-savvy.commit meta.commit-info.files.changes constant.numeric.lines-count.git-savvy | ||
# ^ git-savvy.commit meta.commit-info.files.changes constant.numeric.lines-count.git-savvy | ||
# ^ meta.commit-info.files.changes | ||
# ^ markup.inserted.git-savvy.add-block.content constant.numeric.lines-count.git-savvy | ||
# ^ markup.inserted.git-savvy.add-block.content | ||
# ^ markup.inserted.git-savvy.add-block.content | ||
# ^ markup.deleted.git-savvy.delete-block.content constant.numeric.lines-count.git-savvy | ||
# ^ markup.deleted.git-savvy.delete-block.content | ||
|
||
2 files changed, 55 insertions(+) | ||
#^ git-savvy.commit meta.commit-info.files.changes constant.numeric.lines-count.git-savvy | ||
# ^ meta.commit-info.files.changes | ||
# ^ markup.inserted.git-savvy.add-block.content constant.numeric.lines-count.git-savvy | ||
# ^ markup.inserted.git-savvy.add-block.content constant.numeric.lines-count.git-savvy | ||
# ^ markup.inserted.git-savvy.add-block.content | ||
# ^ markup.inserted.git-savvy.add-block.content | ||
|
||
1 files changed, 48 deletions(-) | ||
#^ git-savvy.commit meta.commit-info.files.changes constant.numeric.lines-count.git-savvy | ||
# ^ meta.commit-info.files.changes | ||
# ^ markup.deleted.git-savvy.delete-block.content constant.numeric | ||
# ^ markup.deleted.git-savvy.delete-block.content constant.numeric | ||
# ^ markup.deleted.git-savvy.delete-block.content | ||
|
||
|
||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
#^ git-savvy.commit meta.commit-info.files.changes constant.numeric.lines-count.git-savvy | ||
# ^ meta.commit-info.files.changes | ||
# ^ markup.inserted.git-savvy.add-block.content constant.numeric.lines-count.git-savvy | ||
# ^ markup.inserted.git-savvy.add-block.content | ||
# ^ git-savvy.commit markup.deleted.git-savvy.delete-block.content constant.numeric.lines-count.git-savvy | ||
# ^ markup.deleted.git-savvy.delete-block.content | ||
# ^ markup.deleted.git-savvy.delete-block.content |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be more clear to separate the settings for
show_commit.py
andshow_commit_info.py
?I suggest using
show_diff_stat_in_show_commit_view
forshow_commit.py
andshow_diff_stat_in_commit_info
or somethings along this line.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can keep it all in one setting since if you are interested in diffstat somewhere you would probably like so see it elsewhere.
Maybe we can have one setting for all views and one setting to display it in commit view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough. #488 is a separated issue.