gitignore(5) works fine with filename-only pattern, i.e. it ignores .sujournal correctly.
$HOME/.config/git/ignore
But when I set the full path, it doesn't ignore it, i.e.
$HOME/.config/git/ignore
My Git setting (Normal User):
Good (ignores all)
$HOME/.config/git/ignore
Bad (dismissed the .sujournal)
$HOME/.config/git/ignore
$HOME/.config/git/ignore
Code:
.sujournal
But when I set the full path, it doesn't ignore it, i.e.
Git status
complains:$HOME/.config/git/ignore
Code:
/usr/src/.sujournal
My Git setting (Normal User):
Code:
$ git config --global user.name "USER"
$ git config --global user.email USER@HOST
$ git config --global pull.rebase true
$ git config --global fetch.prune true
$ git config --global diff.colorMoved
$ git config --global core.excludesFile "$HOME/.config/git/ignore"
Good (ignores all)
$HOME/.config/git/ignore
Code:
.sujournal
/usr/doc/.snap/
/usr/ports/.snap/
/usr/src/.snap/
Bad (dismissed the .sujournal)
$HOME/.config/git/ignore
Code:
/usr/doc/.snap/
/usr/doc/.sujournal
/usr/ports/.snap/
/usr/ports/.sujournal
/usr/src/.snap/
/usr/src/.sujournal
uname -a
Code:
FreeBSD <HOST> 13.0-RELEASE FreeBSD 13.0-RELEASE #0 releng/13.0-n244733-ea31abc261f: <DATE> <TIME> root@releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64