]> git.baikalelectronics.ru Git - kernel.git/commit
sh: exclude vmlinux.scr from .gitignore pattern
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 1 May 2019 13:56:01 +0000 (22:56 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 18 May 2019 02:29:01 +0000 (11:29 +0900)
commit04259fc4cff7a9b97e50b9704d31434e828f2919
tree13b93e3f31ccade4612af5ebd9f73f639e5a0047
parent6a79db9cfa0194bb18648e24343170108c7dc9fd
sh: exclude vmlinux.scr from .gitignore pattern

arch/sh/boot/.gitignore has the pattern "vmlinux*"; this is effective
not only for the current directory, but also for any sub-directories.

So, from the point of .gitignore grammar, the following check-in files
are also considered to be ignored:

  arch/sh/boot/compressed/vmlinux.scr
  arch/sh/boot/romimage/vmlinux.scr

As the manual gitignore(5) says "Files already tracked by Git are not
affected", this is not a problem as far as Git is concerned.

However, Git is not the only program that parses .gitignore because
.gitignore is useful to distinguish build artifacts from source files.

For example, tar(1) supports the --exclude-vcs-ignore option. As of
writing, this option does not work perfectly, but it intends to create
a tarball excluding files specified by .gitignore.

So, I believe it is better to fix this issue.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/sh/boot/.gitignore