Skip to content
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

support view commits by hash ids on log graph window #495

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

watergear
Copy link

@watergear watergear commented Sep 28, 2016

refer to issue #492

  • Run Git: Graph All to show history as Graph.
  • Highlight Hash ID of commits (or just leave cursor stay on the word of Hash ID)
  • Run Git: View Selected Commits to view commits.

image
image
image


Sometimes you may need to view someone's related commits recently. Of course it is able to highlight their names (or something other else). It will dectect Hash IDs at the lines according to your highlight words. It's useful feature to track someone's changes.

  • Run Git: Graph All to show history as Graph.
  • Highlight author's name of commits (or just leave cursor stay on the line)
  • Run Git: View Commits from Selected Lines to view commits.

image
image
image

@watergear
Copy link
Author

There are different usage of View Commits command

  1. "Git: View Selected Commits"
  2. "Git: View Commits from Current Lines"
  3. "Git: View Commits from Selected Lines"
    image

for 1),
Highlight current word whatever it is fit of syntax for Commit Hash ID. Usually It can be branch or tag name, and can be on commit's message.
image
image
image


for 2),
Select multiple lines but to view only one commit at first line on selection.
It is specially for Blame as there are too many duplicated hash ids.
image
image

Make multiple selections to view multiple commits at first line on each selection.
image


for 3),
Select multiple lines to view all Commits in such selections.
It is specially for Graph as there are series of commits from someone in a period of time.
E.g
Select 3 lines at one selection. It will dump 3 commits at one times.
image
image

@watergear
Copy link
Author

new commit for support issue #497
run Git: View Commits as One Diff
image
image
image
image

@watergear
Copy link
Author

@kemayo
I see you still go on to update the class GitGotoCommit.
I have refactored the codes of class GitGotoCommit and descripted above why it need to be done.
Those are very useful features of show commits for us and our team, Especially the Git: View Commits as One Diff

I was attempting to suggest my leadership to try this package for using Git in Sublime Text. They are usually using Git in Vim or other GUI tools.
But I think Sublime Text is better than others.

Could you have time to look at my pull request and try to merge them? Or just tell me what is wrong lead you to reject my pull request?

Thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant