Skip to content

Conversation

bjsee
Copy link

@bjsee bjsee commented Nov 27, 2023

Instead of configuring the location of the .git directory as suggested in issue #3, the plugin will recursively search for a .git folder in the directory tree, starting from the project directory. This approach makes the plugin usable for mono-repos as well.

@bjsee
Copy link
Author

bjsee commented Dec 5, 2023

Hi @AnakinPt: What do you think about this PR?

});
}

static File findGitFolder(File rootDir) {
Copy link
Owner

Choose a reason for hiding this comment

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

Don't use static methods.
You can use recursivity better.
findGit(folder){
if folder == null
throw exception
return folder.exists?folder:findFolder(folder.getParentDir)

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! I replaced the static method and improved the recursivity.

Copy link
Author

Choose a reason for hiding this comment

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

@AnakinPt could you review again please?

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