Skip to content

Make ignoring branches work from child directories#13

Merged
sbimochan merged 5 commits intosbimochan:masterfrom
mesaugat:smart-commit-ignore
Jan 13, 2019
Merged

Make ignoring branches work from child directories#13
sbimochan merged 5 commits intosbimochan:masterfrom
mesaugat:smart-commit-ignore

Conversation

@mesaugat
Copy link
Copy Markdown
Contributor

@mesaugat mesaugat commented Jan 11, 2019

  • Rename .ignore to .smart-commit-ignore as .ignore could be anything and doesn't explicitly say what it is ignoring
  • Get the top level .git directory and find .smart-commit-ignore if any
  • Remove echo statement if smart commit is not in action
  • Update README with information about how to skip branches

@sbimochan
Copy link
Copy Markdown
Owner

Respected brother, please review my #12 too.

Comment thread commit
ROOT_DIRECTORY_CMD="git rev-parse --show-toplevel"
GIT_ROOT_DIRECTORY=$(eval $ROOT_DIRECTORY_CMD)

CUSTOM_IGNORED_PATH="$GIT_ROOT_DIRECTORY/.smart-commit-ignore"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

why is CUSTOM_IGNORED_PATH only declared and not used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Lol, is it? I think I tested it myself. This might be a blunder. 😞

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think your test passed because we have fallback array of branches 😂

@sbimochan sbimochan merged commit 1f57ad0 into sbimochan:master Jan 13, 2019
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.

2 participants