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

[PATCH] git-relink: avoid hard linking in objects/info directory

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Jan 29, 2008, 22:41 UTC
Message-ID
<479FAB9A.9040009@nrlssc.navy.mil>

git-relink is intended to search for packs and loose objects in common between two repositories and to replace the one set with hard links to the other. Files other than packs and loose objects should not be touched, so add the "info" sub-directory to the pattern of directory excludes.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
---
 git-relink.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-relink.perl b/git-relink.perl
index f6b4f6a..d267404 100755
--- a/git-relink.perl
+++ b/git-relink.perl
@@ -40,7 +40,7 @@ my $master_dir = pop @dirs;
 opendir(D,$master_dir . "objects/")
 	or die "Failed to open $master_dir/objects/ : $!";
 
-my @hashdirs = grep !/^\.{1,2}$/, readdir(D);
+my @hashdirs = grep !/^(\.{1,2}|info)$/, readdir(D);
 
 foreach my $repo (@dirs) {
 	$linked = 0;
-- 
1.5.4.rc5.3.gb953
Next: Rafael Garcia-Suarez
Message 1 of 5 in “git-relink: avoid hard linking in objects/info directory”
  1. git-relink: avoid hard linking in objects/info directoryBrandon Casey, Jan 29, 2008
  2. Rafael Garcia-SuarezJan 30, 2008
  3. Junio C HamanoJan 30, 2008
  4. Rafael Garcia-SuarezJan 30, 2008
  5. Brandon CaseyJan 30, 2008

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.