Re: [PATCH] Add NO_CROSS_DIRECTORY_HARDLINKS support to the Makefile
- From
- Cedric Staniewski <cedric@gmx.ca>
- Date
- May 11, 2009, 16:29 UTC
- Message-ID
- <4A085280.3090501@gmx.ca>
- In-Reply-To
- <alpine.DEB.1.00.0905111256580.4973@intel-tinevez-2-302>
Johannes Schindelin wrote:
> I do not understand how this commit could be responsible, but here > is an attempt to fix things.
The important difference is that before this commit, git-add was hardlinked to a file outside of DESTDIR. Thus, when the build directory was removed or you tar'ed DESTDIR, git-add was just a regular file and all the other builtins were hardlinked to it.
Behavior before commit: $ touch git git-add && mkdir bin libexec && cp git bin && ln git-add libexec/ && ### the relevant line tar caf git.tar.gz bin libexec && tar tfv git.tar.gz
bin/ bin/git libexec/ libexec/git-add
Behavior after commit: $ touch git git-add && mkdir bin libexec && cp git bin && ln bin/git libexec/git-add && ### the relevant line tar caf git.tar.gz bin libexec && tar tfv git.tar.gz
bin/ bin/git libexec/ libexec/git-add link to bin/git