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

Re: Interactive rebase with pre-built script?

From
AWAndrew Wong <andrew.w@sohovfx.com>
Date
Sep 13, 2012, 18:08 UTC
Message-ID
<5052211F.6060000@sohovfx.com>
In-Reply-To
<alpine.DEB.2.00.1209131431580.20765@ds9.cixit.se>
On 09/13/2012 09:33 AM, Peter Krefting wrote:
Show 5 quoted lines
>> But this could potentially be dangerous because if "rebase" fires up 
>> a editor for any other reason (e.g. having a "reword" or "squash" in 
>> your recipe), then the commit message will be messed up. So you need 
>> to make sure your recipe won't trigger any editor except for the recipe.
> Indeed, that's why I don't want to do that. 
Are you expecting to have "reword" or "squash" in your recipe? If not, I 
think you should be safe.
If there's a conflict, then rebase will stop, and next time you run "git 
rebase --continue", your normal editor will be back.
 From your original description, it sounded like you are only doing "pick".
On 09/13/2012 09:33 AM, Peter Krefting wrote:
> Perhaps I should add some switch that would append the contents of a 
> specific file to the prebuild recipe, I guess that should be fairly 
> easy. The question is what to call the switch.

How about calling the switch "--todo"? i.e. "rebase -i --todo my_recipe" Can we also get some inputs from others on whether adding this switch to "rebase -i" is desirable?

On 09/11/2012 11:35 AM, Junio C Hamano wrote:
> Using "git cherry-pick $(git rev-list --reverse .....)" ought to work.

And I assume what Junio suggested doesn't help with your problem? Because of the time skewed behavior?

Previous: Peter Krefting
Message 5 of 5 in “Interactive rebase with pre-built script?”
  1. Peter KreftingSep 11, 2012
  2. Junio C HamanoSep 11, 2012
  3. Andrew WongSep 12, 2012
  4. Peter KreftingSep 13, 2012
  5. Andrew WongSep 13, 2012

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.