Live data from Hacker News

SublimeGit: Full-featured Git integration for Sublime Text

sublimegit.net

71–80 of 88 posts

Re: SublimeGit: Full-featured Git integration for Sublime Text

#71

What are the advantages of using this plugin over using git in the terminal directly? The time to switch windows is always pretty marginal with Cmd-Tab, so that doesn't seem like a big enough win to me. (I'm honestly curious, I can't think of the big ones, but if I could I might switch.) I could imagine diffing being a way better experience straight from the file you want to diff, and with code highlighting. That def…

Well I am a heavy magit user.

There are numerous advantages one of being that magit uses multiple buffers to show contextual information. For example I can get a nice ASCII view of the commit log in one buffer (in all the available formats) and see the diffs for each commit with glorious colour-highlighting in the other, side-by-side. The diff buffer updates as I scroll through the history.

Easier to remember mnemonics for common tasks.

I can use magit-blame-mode to see the blame information inline with the file as I edit it.

Diffs are super-easy and I can jump right to any file to fix things as I come across them from the logs or the status view.

Plus emacs... so I get hooks into magit that I can use from other packages like org-mode, etc.

I find the command-line to be tedious and slow now. I'd rather use a smart front-end with sane defaults and a nice interface.

Re: SublimeGit: Full-featured Git integration for Sublime Text

#73

What are the advantages of using this plugin over using git in the terminal directly? The time to switch windows is always pretty marginal with Cmd-Tab, so that doesn't seem like a big enough win to me. (I'm honestly curious, I can't think of the big ones, but if I could I might switch.) I could imagine diffing being a way better experience straight from the file you want to diff, and with code highlighting. That def…

Lots of people prefer to interact with their VCS tools via a GUI, and a reasonably large subset of those people prefer for the integration to be built in to their IDE/editor.

Probably 60% of the people at the company I work at don't even know how to use Git or SVN from the command line.

This seems like a decent enough bridge between those two worlds.

Re: SublimeGit: Full-featured Git integration for Sublime Text

#75
post #63
post #57

Earlier quoted context omitted.

It is great, however when doing a Git Status, the shortcuts are not compatible with VI-input mode since they are vi-commands (i,C etc), could you make it possible to use cmd+shortcut?

I've got an outstanding issue on that. Will probably be fixed within a couple of weeks. I'm hoping to do it in a somewhat backwards compatible way, which makes it a little difficult.

One thing I think should be flipped to 'off' by default is the long-form commit descriptions --with largish source files there is significant slow-down, and sometimes ST crashes.

Re: SublimeGit: Full-featured Git integration for Sublime Text

#76
post #67

Seems like this is more of an autocomplete for git commands than what I was hoping for - for instance in Jetbrains IDEs (pycharm, rubymine, intellij) the killer feature IMO is the ability to see inline highlights of diffs when I have work in progress, and to be able to do a project wide branch diff (e.g develop vs master) with a really nice multi-file diff explorer. It's the one feature keeping me using jetbrains ove…

For the inline bits, that'd be GitGutter: https://github.com/jisaacks/GitGutter

Re: SublimeGit: Full-featured Git integration for Sublime Text

#78

What are the advantages of using this plugin over using git in the terminal directly? The time to switch windows is always pretty marginal with Cmd-Tab, so that doesn't seem like a big enough win to me. (I'm honestly curious, I can't think of the big ones, but if I could I might switch.) I could imagine diffing being a way better experience straight from the file you want to diff, and with code highlighting. That def…

> What are the advantages of using this plugin over using git in the terminal directly?

Speaking generally to editor integrations and VCS GUI tools, the prime advantages vs. the CLI tools are:

1) Uninterrupted workflow for common tasks. Select files for commit, review the diffs, then commit all without leaving the editor.

2) Better visualization and interactive workflow. Examples include, good intra-line, side-by-side diff. Being able to `git blame` then trivially explore the associated commits and surrounding history for those commits. Yes, it's possible to do all of this from the command line, but it's often clunky compared to well-thought out tooling. With some VCS systems and projects, graphical display and navigation of history is helpful for understanding the relative state of branches, tracking down obscure bugs, etc.

That said, I'm not a fan of glossy GUI tools that hide the working model of the underlying VCS. For the most part, not using the CLI is a great way to never really "get" version control as a powerful workflow tool. Perforce's P4V GUI tool gets credit on this point. The last time I used it, there was a console that showed the command line run and results for every GUI action. This happened to be a nice learning tool, providing relevant, live examples of basic and advanced usage.

Re: SublimeGit: Full-featured Git integration for Sublime Text

#79

Very cool! If you could add the ability to stage by line/hunk, perhaps from within the diff view, that would be pretty rad. Also too bad that you can't initiate an interactive rebase using SublimeGit. If I have to drop to the terminal for those two things (which I do quite frequently), realistically I'll end up just using the terminal for all git operations.

You can actually stage and unstage hunks from a diff view. With a diff view open, you can press + or - to increase or decrease hunk size, n/p and N/P for next/previous hunk/file, and s/u for stage and unstage.

Rebase is one of the big ones coming up.

Post reply on HN