The Git TextMate Bundle
Ruby HTML CSS JavaScript
Pull request Compare This branch is 96 commits ahead, 4 commits behind jcf:master.
Latest commit ad28c88 Oct 8, 2017 @sorbits sorbits Escape potential spaces in file URLs
If the Git bundle is checked out to Application Support then TM_BUNDLE_SUPPORT will contain a space.

Not escaping spaces in file URLs seems to have worked in the past (with WebKit) but escaping them is the right thing to do, and it does not work in macOS 10.12.

README.textile

The Git Textmate Bundle

Installation

You can install this bundle in TextMate by opening the preferences and going to the bundles tab. After installation it will be automatically updated for you.

  • Many shortcuts are available from the SCM shortcut ⌘Y Subversion commands are ⌘⌥G. Less frequent commands are accessed via the menu.

Support

The Mailing list has now been closed. Please feel free to report issues using the Issue tracker.

Theme notes:

The “Git Commit Message” Language defines two scopes that can be used by a theme to generate “line too long” warnings for the first line of the commit:

  • invalid.deprecated.line-too-long.git-commit
  • invalid.illegal.line-too-long.git-commit

The warning scope triggers when the first line exceeds 50 characters; the error scope over 65 characters. These aren’t generally-used TextMate scopes, so you can add new rules to your preferred themes, such as orange background/red background. You can also edit the regex to change the preferred character counts.

Development

Running Specs

The specs must be run with Ruby 1.8.7 (p358). Use your Ruby version manager of choice to install this version. Then, with this version activated (and Support/ as current directory), run bundle install to install the appropriate versions of RSpec and hpricot.

When running the specs from the command line you need to set TM_SPPORT_PATH explicitly. The following should work:

export TM_SUPPORT_PATH=~/Library/Application\ Support/TextMate/Managed/Bundles/Bundle\ Support.tmbundle/Support/shared

To run the specs then use:

bundle exec spec spec/

Who:

Previous Maintainers

Git-tmbundle superstars

The Git TextMate Bundle wouldn’t be possible without the contributions of the following fine gentlemen:

Major Contributions

  • Allan Odgaard – Started the bundle, got it rolling. Many patches. Oh, and TextMate :-).
  • Sam Granieri – GitK, Many of the git-svn commands, Git initialize repository command, menu layouting, create-tag.
  • Johan Sørensen – Contributing the CSS styling.

Please feel free to send a pull request if you’ve added any functionality to this bundle that you think the rest of the git-loving, TextMate-using world would appreciate!