If .gitignore does not include a linebreak (because I forgot...), the git ignore xxx/ will include the new ignore pattern at the end without a leinreak inbetween:
This .gitignore:
pattern/
# no linebreak at the end of the file
will result in:
pattern/build/
# linbreak
If
.gitignoredoes not include a linebreak (because I forgot...), thegit ignore xxx/will include the new ignore pattern at the end without a leinreak inbetween:This
.gitignore:will result in: