-
Notifications
You must be signed in to change notification settings - Fork 15
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
Recipe for .gitignore update #532
Comments
Hello sir, What i understood : Creating an openrewrite recipe to merge the entries from a .gitignore file in an archetype with an existing .gitignore file |
Yes if the file is missing it's created (already the case). But if the file already exist entries must be merged with the .gitignore entries from archetype to ensure user defined entries are not erased. It's possible that JGit provide some utilities to know if some entries are overlapping. |
Understood sir, I'm assuming it's similar to what i am working on with pr#560 so can i work on this simultaneously along with it. Thank you. |
https://archive.eclipse.org/jgit/site/6.3.0.202209071007-r/org.eclipse.jgit/apidocs/org.eclipse.jgit/org/eclipse/jgit/ignore/FastIgnoreRule.html |
(Just note that we are on latest version of JGit) |
Hello sir, Thank you. |
Please come with a proposal. I don't have the answer to the question |
I tried having 3 text blocks (1 for the gitignore that already exists, 1 for archetype file, 1 the expected result after merging ) will this work? |
What feature do you want to see added?
Right now the .gitignore is just added when missing.
We need some logic to merge with entries from archetype
Upstream changes
None
Are you interested in contributing this feature?
No response
The text was updated successfully, but these errors were encountered: