{"thread":{"id":"26461","subject":"[PATCH, TopGit] tg-annihilate: Pass --no-verify when committing.","startedAt":"2011-02-10T13:39:03Z","lastAt":"2011-02-10T13:39:03Z","messageCount":1,"participants":["Thomas Schwinge"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"160824","messageId":"1297345143-23788-1-git-send-email-thomas@schwinge.name","threadId":"26461","inReplyTo":null,"subject":"[PATCH, TopGit] tg-annihilate: Pass --no-verify when committing.","fromName":"Thomas Schwinge","fromEmail":"thomas@schwinge.name","sentAt":"2011-02-10T13:39:03Z","receivedAt":"2011-02-10T13:39:03Z","isPatch":true,"sender":{"key":"thomas@schwinge.name","avatar":"https://gravatar.com/avatar/52ddb7ca4856f40a2eb23eac2f499178ff17dcc372d055c6c41ab2ecc4d19ae8?d=mp&s=160"},"body":"This is needed in order to inhibit TopGit's pre-commit hook to run,\nwhich would bark upon missing .top* files.\n---\n\nHallo!\n\n(Yeah, I'm still using TopGit for some things.)  I needed the following\npatch to make tg annihilate work if the base is a non-TopGit branch.  Is\nthis the correct approach?\n\n\nGrÃ¼Ãe,\n Thomas\n\n\n tg-annihilate.sh |    4 +++-\n 1 files changed, 3 insertions(+), 1 deletions(-)\n\ndiff --git a/tg-annihilate.sh b/tg-annihilate.sh\nindex 219b8fe..89d192c 100644\n--- a/tg-annihilate.sh\n+++ b/tg-annihilate.sh\n@@ -34,7 +34,9 @@ baserev=\"$(git rev-parse --verify \"refs/top-bases/$name\" 2>/dev/null)\" ||\n ## Annihilate\n mb=\"$(git merge-base \"refs/top-bases/$name\" \"$name\")\"\n git read-tree \"$mb^{tree}\"\n-git commit -m\"TopGit branch $name annihilated.\"\n+# Need to pass --no-verify in order to inhibit TopGit's pre-commit hook to run,\n+# which would bark upon missing .top* files.\n+git commit --no-verify -m\"TopGit branch $name annihilated.\"\n \n info 'If you have shared your work, you might want to run `tg push` now.'\n info 'Then you probably want to switch to another branch.'\n-- \n1.7.1\n"}]}