gitignore.rb Build Status RubyGems Version Of gitignore_rb

This is an implementation of .gitignore parsing and matching in Rust. Use this library if you want to check whether a given path would be excluded by a .gitignore file.

This library wraps my Rust implementation of .gitignore semantics for performance.

Usage

The Gem is called gitignore_rb and you can it is available via RubyGems:

gem install gitignore_rb

Examples

A simple example is as follows:

require 'gitignore'

gi = GitIgnore.new('/path/to/.gitignore')
gi.included_files #=> ['foo', 'bar', 'lux/win', ...]