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

Re: Rebase options via git pull

From
Đoàn Trần Công Danh <congdanhqx@gmail.com>
Date
May 17, 2021, 14:48 UTC
Message-ID
<YKKCQmaEHMR5WATP@danh.dev>
In-Reply-To
<87a6otv7lm.fsf@osv.gnss.ru>
On 2021-05-17 15:59:49+0300, Sergey Organov <sorganov@gmail.com> wrote:
Show 34 quoted lines
> Đoàn Trần Công Danh <congdanhqx@gmail.com> writes:
> 
>> On 2021-05-17 15:33:18+0300, Sergey Organov <sorganov@gmail.com> wrote:
>>> >> Probably add generic cmd.<cmd>.opts config support, so that I can say:
>>> >>
>>> >>   git -c cmd.rebase.opts="--no-fork-point --empty=keep" pull --rebase
>>> >>
>>> >> Thoughts?
>>> >
>>> > It's been discussed before (but I did not dig up the discussions,
>>> > sorry). It's been considered a bad idea, because our commands are a
>>> > mixture of plumbing/porcelain commands and switches, so we want to be
>>> > able to reliably invoke say ls-tree with some switches internally,
>>> > without config tripping us up.
>>> >
>>> > Of course we could make this sort of thing work by selectively ignoring
>>> > the config, but such a thing would be equal in complexity to the effort
>>> > of assering that it's safe to introduce new rebase.* config in the
>>> > codebase for every switch it has now, but with a less friendly interface
>>> > both for git itself and users.
>>> 
>>> I don't see much complexity here. We'd then just need to effectively
>>> invoke ls-tree internally like this:
>>> 
>>>    git -c 'cmd.ls-tree.opts=' ls-tree
>>> 
>>> Not a big deal.
>>
>> It's a big deal.
>>
>> Scripts was written with plumbing command and expect stable output.
>> If such change can be accepted, a lot of scripts will begin to fail.
> 
> Makes sense. Then simply don't do it for plumbing?
Then, we will get back to the state Ævar pointed out.
Quoted again:
Show 5 quoted lines
>>> > Of course we could make this sort of thing work by selectively ignoring
>>> > the config, but such a thing would be equal in complexity to the effort
>>> > of assering that it's safe to introduce new rebase.* config in the
>>> > codebase for every switch it has now, but with a less friendly interface
>>> > both for git itself and users.

Anyway, it's not only plumbing command, it's also semi-plumbing commands (the ones accept --porcelain option) like:

	git status --porcelain[=<version>]
-- 
Danh
Previous: Sergey Organov
Message 13 of 13 in “Rebase options via git pull”
  1. Sergey OrganovMay 13, 2021
  2. Junio C HamanoMay 13, 2021
  3. Ævar Arnfjörð BjarmasonMay 14, 2021
  4. Sergey OrganovMay 15, 2021
  5. Alex HenrieMay 14, 2021
  6. Đoàn Trần Công DanhMay 14, 2021
  7. Alex HenrieMay 14, 2021
  8. Sergey OrganovMay 14, 2021
  9. Ævar Arnfjörð BjarmasonMay 17, 2021
  10. Sergey OrganovMay 17, 2021
  11. Đoàn Trần Công DanhMay 17, 2021
  12. Sergey OrganovMay 17, 2021
  13. Đoàn Trần Công DanhMay 17, 2021

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.