`gnulib-tool --update` 不改变 `.gitignore` 文件
`gnulib-tool --update` without altering `.gitignore` files
我在我的项目中使用了一些 gnulib 模块。我选择不在我的存储库中携带它们。每次我做一个新的克隆我只是 运行.
$ gnulib-tool --update
我已经准备好了!
不过有一个问题。我已经设置了 .gitignore
文件,我对它们非常满意。我不想 gnulib-tool
把他们搞砸。
知道如何消除这种副作用吗?
编辑:--no-vc-files
选项不适用于 --update
。
$ gnulib-tool --update --no-vc-files
gnulib-tool: invalid options for 'update' mode
Try 'gnulib-tool --help' for more information.
If you really want to modify the gnulib configuration of your project,
you need to use 'gnulib --import' - at your own risk!
您需要将选项 --no-vc-files
传递给初始 gnulib-tool --import
调用。 gnulib-tool 会让他们记住(通过 gnulib-cache.m4
文件中的一行)指定了这个选项。
您还可以修改 gnulib-cache.m4
:添加行
gl_VC_FILES([false])
这将使 gnulib-tool 认为在调用 gnulib-tool --import
时给出了选项 --no-vc-files
。
我在我的项目中使用了一些 gnulib 模块。我选择不在我的存储库中携带它们。每次我做一个新的克隆我只是 运行.
$ gnulib-tool --update
我已经准备好了!
不过有一个问题。我已经设置了 .gitignore
文件,我对它们非常满意。我不想 gnulib-tool
把他们搞砸。
知道如何消除这种副作用吗?
编辑:--no-vc-files
选项不适用于 --update
。
$ gnulib-tool --update --no-vc-files
gnulib-tool: invalid options for 'update' mode
Try 'gnulib-tool --help' for more information.
If you really want to modify the gnulib configuration of your project,
you need to use 'gnulib --import' - at your own risk!
您需要将选项 --no-vc-files
传递给初始 gnulib-tool --import
调用。 gnulib-tool 会让他们记住(通过 gnulib-cache.m4
文件中的一行)指定了这个选项。
您还可以修改 gnulib-cache.m4
:添加行
gl_VC_FILES([false])
这将使 gnulib-tool 认为在调用 gnulib-tool --import
时给出了选项 --no-vc-files
。