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

Make it work when Rails project is not in repository root #11

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

Conversation

zyla
Copy link

@zyla zyla commented May 6, 2022

This is useful for monorepos.

This is accomplished by making Git commands operate on relative pathspecs where we can. In case of migrations, absolute pathspecs (:/ prefix) had to be used, because the file name comes from git diff output.

Copy link
Collaborator

@runephilosof runephilosof left a comment

Choose a reason for hiding this comment

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

Looks good to me.
I having tried executing it, just read the code.

bin/git_rails Outdated Show resolved Hide resolved
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