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

Multiple exclude files #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ShadowTemplate
Copy link

This PR will allow us to use multiple exclude files.
We can take advantage of it to have (large) repo-specific exclude files, e.g. for the manuals repo.
Please, see the follow-up message on Slack.

@kirawrath
Copy link
Contributor

The changes in bin/git-bc-show-eligible LGTM, however for some reason this commit adds 7 empty files, and it is not clear why this would be needed.

@ShadowTemplate
Copy link
Author

You are right. There was a change in permissions. Let me roll-back.

@kirawrath
Copy link
Contributor

Remember to rebase the code as well, because I merged something today.

@ShadowTemplate
Copy link
Author

Done!


def add_exclude_hash(excludes: typing.List[str], commit: str) -> None:
if commit in excludes:
print(f'Commit {commit} already in the exclude list ({EXCLUDES_PATH}).')
print(f'Commit {commit} already in some exclude list ({EXCLUDES_PATHS}).')

Choose a reason for hiding this comment

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

Suggested change
print(f'Commit {commit} already in some exclude list ({EXCLUDES_PATHS}).')
print(f'Commit {commit} already in one of exclude lists in ({EXCLUDES_PATHS}).')

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