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

Re: git rebase -- a suggestion

From
Nanako Shiraishi <nanako3@lavabit.com>
Date
Oct 5, 2008, 13:26 UTC
Message-ID
<20081005222654.6117@nanako3.lavabit.com>
In-Reply-To
<b19eae4e0810021710v14a3901an1f793de00c439ba1@mail.gmail.com>

Documentation/git-rebase.txt talks about pre-rebase hook, but it appears that Documentation/git-hooks.txt does not have corresponding entry for it.

Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
---
 "Robin Burchell" <w00t@inspircd.org> writes:
 > would it perhaps be an idea to have a way to mark a tree 'public', and
 > disallow rebase *unless* --force was passed, or it was a public tree?
 Documentation/githooks.txt |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
index 046a2a7..567ec03 100644
--- a/Documentation/githooks.txt
+++ b/Documentation/githooks.txt
@@ -130,6 +130,13 @@ parameter, and is invoked after a commit is made.
 This hook is meant primarily for notification, and cannot affect
 the outcome of 'git-commit'.
 
+pre-rebase
+----------
+
+This hook is called by 'git-rebase' and can be used to prevent a branch
+from getting rebased.
+
+
 post-checkout
 -----------
 
-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
Previous: Robin BurchellNext: Nanako Shiraishi
Message 2 of 7 in “git rebase -- a suggestion”
  1. Robin BurchellOct 3, 2008
  2. Nanako ShiraishiOct 5, 2008
  3. Teach rebase -i to honor pre-rebase hookNanako Shiraishi, Oct 6, 2008
  4. rebase --no-verifyNanako Shiraishi, Oct 6, 2008
  5. Shawn O. PearceOct 6, 2008
  6. Stephan BeyerOct 6, 2008
  7. Shawn O. PearceOct 6, 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.