GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
PATHSPEC-RB(1) FreeBSD General Commands Manual PATHSPEC-RB(1)

pathspec - Test pathspecs against a specific path

pathspec-rb [OPTIONS] [SUBCOMMAND] [PATH] NAME PATH

pathspc-rb is a tool that accompanies the pathspec-ruby library to help you test what match results the library would find using path specs. You can either find all specs matching a path, find all files matching specs, or verify that a path would match any spec.

https://github.com/highb/pathspec-ruby

Name Description
specs_match Find all specs matching path
tree Find all files under path matching the spec
match Check if the path matches any spec

-f <FILENAME>, --file <FILENAME>
Load path specs from the file passed in as argument. If this option is not specified, pathspec-rb defaults to loading .gitignore.
-t [git|regex], --type [git|regex]
Type of spec expected in the loaded specs file (see -f option). Defaults to git.
-v, --verbose
Only output if there are matches.

Find all files ignored by git under your source directory:

  $ pathspec-rb tree src/

List all spec rules that would match for the specified path:

  $ pathspec-rb specs_match build/

Check that a path matches at least one of the specs in a new version of a gitignore file:

  $ pathspec-rb match -f .gitignore.new spec/fixtures/

Brandon High highb@users.noreply.github.com

Gabriel Filion


Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.