in src/main/kotlin/mobi/hsz/idea/gitignore/command/AppendFileCommandAction.kt [47:61]
override fun visitEntry(entry: IgnoreEntry) {
val moduleDir = Utils.getModuleRootForFile(file.virtualFile, project)
if (content.contains(entry.text) && moduleDir != null) {
Notify.show(
project,
IgnoreBundle.message("action.appendFile.entryExists", entry.text),
IgnoreBundle.message(
"action.appendFile.entryExists.in",
Utils.getRelativePath(moduleDir, file.virtualFile)
),
NotificationType.WARNING
)
content.remove(entry.text)
}
}