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

Re: [GSoC][PATCH 1/1] rebase--interactive: rewrite the edit-todo functionality in C

From
Alban Gruin <alban.gruin@gmail.com>
Date
Jun 12, 2018, 12:33 UTC
Message-ID
<801da146-6905-5f7b-12c0-7239108b6207@gmail.com>
In-Reply-To
<3bfd3470-4482-fe6a-2cd9-08311a0bbaac@talktalk.net>
Hi Phillip,
Le 11/06/2018 à 17:32, Phillip Wood a écrit :
Show 6 quoted lines
>> +    if (launch_editor(todo_file, NULL, NULL))
> 
> I'm not sure that this will respect GIT_SEQUENCE_EDITOR, it would be
> nice to have a launch_sequence_editor() function that shared as much
> code as possible with launch_editor()
> 

It could be done by making launch_editor() and launch_sequence_editor() some kind of wrapper around a function like launch_specified_editor() (or something like that), that would take the editor as a parameter, in addition to the path, the buffer and environment variables. It would be also very trivial to implement your first point above on top of that.

>>   int append_todo_help(unsigned edit_todo, unsigned keep_empty);
> 
> Can this declaration be removed now?
No, it’s still used in rebase--helper.c for now.
Show 9 quoted lines
> 
>> +int edit_todo_list(unsigned flags);
>>   int skip_unnecessary_picks(void);
>>   int rearrange_squash(void);
> 
> Best Wishes
> 
> Phillip
> 

Cheers, Alban

Previous: Phillip WoodNext: Phillip Wood
Message 4 of 19 in “rebase -i: rewrite the edit-todo functionality in C”
  1. Alban GruinJun 11, 2018
  2. [GSoC][PATCH 1/1] rebase--interactive: rewrite the edit-todo functionality in CAlban Gruin, Jun 11, 2018
  3. Phillip WoodJun 11, 2018
  4. Alban GruinJun 12, 2018
  5. Phillip WoodJun 12, 2018
  6. Elijah NewrenJun 12, 2018
  7. Alban GruinJun 12, 2018
  8. [GSoC][PATCH v2 0/2] rebase -i: rewrite the edit-todo functionality in CAlban Gruin, Jun 13, 2018
  9. [GSoC][PATCH v2 1/2] editor: add a function to launch the sequence editorAlban Gruin, Jun 13, 2018
  10. [GSoC][PATCH v2 2/2] rebase--interactive: rewrite the edit-todo functionality in CAlban Gruin, Jun 13, 2018
  11. Junio C HamanoJun 14, 2018
  12. Alban GruinJun 14, 2018
  13. Elijah NewrenJun 14, 2018
  14. Phillip WoodJun 14, 2018
  15. [GSoC][PATCH v3 0/2] rebase -i: rewrite the edit-todo functionality in CAlban Gruin, Jun 26, 2018
  16. [GSoC][PATCH v3 1/2] editor: add a function to launch the sequence editorAlban Gruin, Jun 26, 2018
  17. [GSoC][PATCH v3 2/2] rebase-interactive: rewrite the edit-todo functionality in CAlban Gruin, Jun 26, 2018
  18. Johannes SchindelinJun 26, 2018
  19. Johannes SchindelinJun 26, 2018

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.