git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add NO_CROSS_DIRECTORY_HARDLINKS support to the Makefile

From
CSCedric 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

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 6 in “Cross-directory hard links”
  1. Cedric StaniewskiMay 11, 2009
  2. Add NO_CROSS_DIRECTORY_HARDLINKS support to the MakefileJohannes Schindelin, May 11, 2009
  3. Cedric StaniewskiMay 11, 2009
  4. Johannes SchindelinMay 11, 2009
  5. Cedric StaniewskiMay 11, 2009
  6. Tony FinchMay 11, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.