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

[TopGit PATCH] tg.sh: it's info/attributes not info/gitattributes

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Aug 8, 2008, 06:43 UTC
Message-ID
<1218177797-21589-1-git-send-email-bert.wesarg@googlemail.com>

The merge attribute hasn't any effect, because the wrong attribute file was used.

Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
---
 tg.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tg.sh b/tg.sh
index 03a392b..209b69e 100644
--- a/tg.sh
+++ b/tg.sh
@@ -45,11 +45,11 @@ setup_hook()
 # setup_ours (no arguments)
 setup_ours()
 {
-	if [ ! -s "$git_dir/info/gitattributes" ] || ! grep -q topmsg "$git_dir/info/gitattributes"; then
+	if [ ! -s "$git_dir/info/attributes" ] || ! grep -q topmsg "$git_dir/info/attributes"; then
 		{
 			echo -e ".topmsg\tmerge=ours"
 			echo -e ".topdeps\tmerge=ours"
-		} >>"$git_dir/info/gitattributes"
+		} >>"$git_dir/info/attributes"
 	fi
 	if ! git config merge.ours.driver >/dev/null; then
 		git config merge.ours.name '"always keep ours" merge driver'
-- 
tg: (e311d15..) t/its-info-attributes (depends on: master)
Next: Petr Baudis
Message 1 of 2 in “tg.sh: it's info/attributes not info/gitattributes”
  1. tg.sh: it's info/attributes not info/gitattributesBert Wesarg, Aug 8, 2008
  2. Petr BaudisAug 9, 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.