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

[PATCH, TopGit] tg-annihilate: Pass --no-verify when committing.

From
Thomas Schwinge <thomas@schwinge.name>
Date
Feb 10, 2011, 13:39 UTC
Message-ID
<1297345143-23788-1-git-send-email-thomas@schwinge.name>

This is needed in order to inhibit TopGit's pre-commit hook to run, which would bark upon missing .top* files. ---

Hallo!

(Yeah, I'm still using TopGit for some things.) I needed the following patch to make tg annihilate work if the base is a non-TopGit branch. Is this the correct approach?

Grüße,
 Thomas
 tg-annihilate.sh |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/tg-annihilate.sh b/tg-annihilate.sh
index 219b8fe..89d192c 100644
--- a/tg-annihilate.sh
+++ b/tg-annihilate.sh
@@ -34,7 +34,9 @@ baserev="$(git rev-parse --verify "refs/top-bases/$name" 2>/dev/null)" ||
 ## Annihilate
 mb="$(git merge-base "refs/top-bases/$name" "$name")"
 git read-tree "$mb^{tree}"
-git commit -m"TopGit branch $name annihilated."
+# Need to pass --no-verify in order to inhibit TopGit's pre-commit hook to run,
+# which would bark upon missing .top* files.
+git commit --no-verify -m"TopGit branch $name annihilated."
 
 info 'If you have shared your work, you might want to run `tg push` now.'
 info 'Then you probably want to switch to another branch.'
-- 
1.7.1
Message 1 of 1 in “tg-annihilate: Pass --no-verify when committing.”
  1. tg-annihilate: Pass --no-verify when committing.Thomas Schwinge, Feb 10, 2011

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.