Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore certain subdirectories? #1

Open
quickfur opened this issue Oct 7, 2014 · 3 comments
Open

Ignore certain subdirectories? #1

quickfur opened this issue Oct 7, 2014 · 3 comments

Comments

@quickfur
Copy link
Contributor

quickfur commented Oct 7, 2014

Is there a way to ignore certain subdirectories when recursively comparing directories? E.g., I want to compare /usr/src/project1 and /usr/src/project2 but I want to ignore everything under .git in those directories.

@stephen322
Copy link
Owner

Not yet.
A work-around for now that I've been using: hardlink copy the directory to a temporary area, then delete the "ignored" directories from there, and dircmp with the modified hardlinked directories.
eg. from /usr/src:
cp -al project1 tmp.project1
rm -rf tmp.project1/.git
dircmp --ar tmp.project1 --br project2
When done: rm -rf tmp.project1

@quickfur
Copy link
Contributor Author

quickfur commented Oct 7, 2014

Pity I'm flying out tomorrow and won't have time to look into this... else I'd take a stab at implementing an --ignore option myself.

And maybe restructure the code a little while I'm at it -- currently gdc is really slow at compiling such a large source file, I wonder if it would speed things up if the code was broken up into smaller files and parallel-compiled. Though that may not help if there are too many dependencies between the pieces.

@stephen322
Copy link
Owner

Yeah, I should probably split it up...

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

No branches or pull requests

2 participants