A small gem to browse a git repo using CSS selectors.
It uses nokogiri to parse out the CSS selector and then rugged to browse the git repo.
Currently only "commit#sha" and "tree#sha" are implemented.
gitcss = GitCSS.new("path/to/repo")
gitcss.get("commit#sha")
GitCSS naturaly uses a small subset of the total number of selectors available in CSS. I will try to mark these as they are implemented.
commit#sha # Fetch a commit by sha
tree#sha # Fetch a tree by sha
blob#sha # Fetch a blob by sha
ref[name=master] #
tag[name=master] # All three of these fetch a ref by name
branch[name=master] #
commit[email=adelcambre@gmail.com] # Fetch all commits by an email
commit[author="Andy Delcambre"] # Fetch all commits by author name
commit#sha tree[path='foo/bar'] # Fetch the tree with path foo/bar under
# commit referenced by sha
- Andy Delcambre adelcambre@gmail.com
- Brian Lopez seniorlopez@gmail.com
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request