sublime-text-git icon indicating copy to clipboard operation
sublime-text-git copied to clipboard

support view commits by hash ids on log graph window

Open watergear opened this issue 9 years ago • 3 comments

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 avatar Sep 28 '16 03:09 watergear

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 avatar Sep 30 '16 04:09 watergear

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

watergear avatar Sep 30 '16 07:09 watergear

@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.

watergear avatar Sep 30 '16 09:09 watergear