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

Exclude files #42

Merged
merged 7 commits into from
Jan 18, 2017
Merged

Exclude files #42

merged 7 commits into from
Jan 18, 2017

Conversation

TannerRogalsky
Copy link
Contributor

This accomplishes what I consider to be the more important half of #39, configuration of a file exclusion list.

The implementation is fairly straightforward except for my rewrite of Project:excludeFiles. I couldn't figure out why it was written the way it was so if I've messed something up there, please let me know and I'll fix it.

@MisterDA
Copy link
Owner

Thank your for your involvement ! Everything seems good to me.
I think that your text editor has removed some trailing spaces in README.md, they are necessary in Markdown to break lines without creating a new paragraph.

Do you prefer a merge commit or a squash 'n merge ? I'm tempted by the squash.

rm = false
end
for i=#self._fileList,1,-1 do
if isExcluded(self._fileList[i], dir, unpack(self.excludeFileList)) then
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like an alias here to support multiple versions of Lua (see msg00532)

local unpack = unpack or table.unpack
-- or
table.unpack = table.unpack or unpack -- preferred ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid the second one, you should never modify Lua's built-in modules since that is not expected from a module and can end up with problems in other modules later on

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem. I'm glad I'm following this project, it is already really mature. Keep it up!

@TannerRogalsky
Copy link
Contributor Author

Thanks for the review! I fixed the whitespace (you were right about the editor removing it) and shimmed the unpack function in the style that does not modify table. I don't have a preference for the style of merge but thanks for asking!

@MisterDA MisterDA merged commit 339cbe7 into MisterDA:master Jan 18, 2017
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

Successfully merging this pull request may close these issues.

3 participants