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

[PATCH] Remove .git/branches from the .git template.

From
Kristian Høgsberg <krh@bitplanet.net>
Date
Dec 9, 2007, 18:38 UTC
Message-ID
<20071209183856.GA5587@bitplanet.net>

The code in git to read the info in .git/branches is still there, but nothing ever writes to this, so lets stop creating it.

Signed-off-by: Kristian Høgsberg <krh@redhat.com>
---

As far as I can see this should be safe, but I admit to never really knowing what .git/branches was originally used for - tracking remote branches or something? In any case, we only ever read from this dir so the only left in git to deal with this seems to be for compatibilty with older repos.

Kristian
 templates/branches-- |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
 delete mode 100644 templates/branches--
diff --git a/templates/branches-- b/templates/branches--
deleted file mode 100644
index fae8870..0000000
--- a/templates/branches--
+++ /dev/null
@@ -1 +0,0 @@
-: this is just to ensure the directory exists.
-- 
1.5.3.4
Next: Junio C Hamano
Message 1 of 3 in “Remove .git/branches from the .git template.”
  1. Remove .git/branches from the .git template.Kristian Høgsberg, Dec 9, 2007
  2. Junio C HamanoDec 9, 2007
  3. Kristian HøgsbergDec 10, 2007

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.