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

Re: [PATCH] rebase --no-verify

From
Shawn O. Pearce <spearce@spearce.org>
Date
Oct 6, 2008, 16:14 UTC
Message-ID
<20081006161424.GE8203@spearce.org>
In-Reply-To
<20081006160716.GC14479@leksak.fem-net>
Stephan Beyer <s-beyer@gmx.net> wrote:
Show 12 quoted lines
> Shawn O. Pearce wrote:
> > >     It probably is better to fix "rebase -i" to share more code with the main
> > >     "rebase" script to avoid duplicated run-pre-rebase-hook function, but it
> > >     is beyond what I can do right now.  Perhaps people more smart and
> > >     beautiful than me can help (^_^;)
> > 
> > True.  But its already a mess.  git-sequencer is probably the
> > right approach to merge it all together.
> 
> Hmm, I don't think I like the pre-rebase hook in sequencer. The user
> scripts (git-rebase--interactive.sh and git-rebase.sh) should run them;
> that's ok.

Sorry, my remark wasn't about the rebase hook as much as it was that there is a good chunk of code duplicated between the two rebase implementations and all of them were implemented through git-sequencer its likely they could all collapse into a single common "git rebase" wrapper script which just sets up the call to git-sequencer.

So yea, I do agree, the pre-rebase hook should be in rebase, not
git-sequencer, but git-sequencer probably offers a great way to
get the different rebase implementations combined together.
 
> I think, for the moment it is ok to have the code duplicated.  After
> sequencer has merged into master[1], I will probably take a look at
> merging git-rebase.sh and git-rebase--interactive.sh if somebody
> else is interested in it and if there is a good way to achieve that.
Yup, exactly my thoughts.  I just didn't express them well.
-- 
Shawn.
Previous: Stephan Beyer
Message 7 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.