Class IgnoreFile
java.lang.Object
io.github.jbastgen.stemma.app.git.IgnoreFile
Adds lines to the ignore files of a repository (
.gitignore, or .git/info/exclude for what is only for
this clone) and builds the patterns for them: exactly this file, all files with this extension, all files with this
name, or a folder. A line that is already there, or already covered by a pattern that is, is not written again.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StringThe name anywhere in the repository (not anchored), for.DS_StoreandThumbs.db.static StringExactly this file or folder, from the root of the repository:/src/App.java,/build/for a folder.static String*.logforbuild.log; null when the name has no extension (Makefile,.gitignore).static StringextensionText(String fileName) The extension with its dot, for a menu text:.log; null when there is none.The folders above a file, nearest first, at mostmax:/a/b/,/a/fora/b/c.txt.
-
Method Details
-
exact
Exactly this file or folder, from the root of the repository:/src/App.java,/build/for a folder. -
extension
*.logforbuild.log; null when the name has no extension (Makefile,.gitignore). -
extensionText
The extension with its dot, for a menu text:.log; null when there is none. -
anywhere
The name anywhere in the repository (not anchored), for.DS_StoreandThumbs.db. -
folders
The folders above a file, nearest first, at mostmax:/a/b/,/a/fora/b/c.txt.
-