Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Walking through tree of non gitignored files #307

Closed
cirocosta opened this issue Mar 13, 2017 · 5 comments
Closed

Walking through tree of non gitignored files #307

cirocosta opened this issue Mar 13, 2017 · 5 comments

Comments

@cirocosta
Copy link

Hey,
first i'd like to say that go-git is amazing; nice work! Discovered this week and still playing around with it :)

Now to the question, is it possible to walk through the tree of objects and gather only those that are not ignored by a .gitignore file? What i'd like to do is clone a repository, apply some changes (which might produce some files that would be ignored) and then walk through this tree.

Thx!

@smola
Copy link
Collaborator

smola commented Mar 15, 2017

@cirocosta go-git has no .gitignore support yet, so you'd have to read .gitignore first, and then filter the tree yourself.

We are not planning to work on this in the short term, but PRs are welcome.

@osklyar
Copy link

osklyar commented Jun 12, 2017

PR enclosed

@cirocosta
Copy link
Author

Great! Thx @osklyar :D

@osklyar
Copy link

osklyar commented Jun 14, 2017

Closed the original PR, but am working on a new fix for this issue.

@osklyar
Copy link

osklyar commented Jun 16, 2017

New PR #429 wit a complete implementation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants