]> Savannah Git Hosting - gnulib.git/commit
gnulib-tool: Add options to create hard links.
authorBruno Haible <bruno@clisp.org>
Sun, 21 May 2017 23:39:59 +0000 (01:39 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 21 May 2017 23:39:59 +0000 (01:39 +0200)
commit306be564ba47ec412ca158f66ffa90a058f5253b
tree03c7187b31be0a148a653106b5631ce40db26098
parent88033d3779362aad8fd11345636d9578f94c14d7
gnulib-tool: Add options to create hard links.

* gnulib-tool (func_usage): Document options --hardlink,
--local-hardlink, --more-hardlinks.
(func_symlink): Renamed from func_ln.
(func_symlink_if_changed): Renamed from func_ln_if_changed.
(func_hardlink): New function.
(copymode, lcopymode): New variables.
(symbolic, lsymbolic): Remove variables.
(Options): Implement options --hardlink, --local-hardlink,
--more-hardlinks.
(func_should_link): Renamed from func_should_symlink. Set copyaction.
(func_add_file, func_update_file): Update invocation of
func_should_link. Invoke func_hardlink when appropriate.
(func_import): Update comments.
(func_create_testdir): Update invocation of func_should_link. Invoke
func_hardlink when appropriate.
Finally, invoke 'git update-index --refresh' to mitigate the effects of
the hard links on git.
ChangeLog
gnulib-tool