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

Re: Limitiations of git rebase --preserve-merges --interactive

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 23, 2016, 15:37 UTC
Message-ID
<xmqqvaxm1vc3.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<1mu13z0.1hye7bq1uqj26sM%lists@haller-berlin.de>
lists@haller-berlin.de (Stefan Haller) writes:
> Thanks, this is interesting; I'm having trouble understanding the tests
> though. Some of them use rebase -p -i, but I don't understand why they
> use -i, or why that even works in a test (i.e. why it doesn't open an
> editor).

Upon starting up, tests dot-source t/test-lib.sh file and it unsets most of GIT_* environment variables to obtain a stable testing environment that is not affected by things that testers may have in their environment.

There is EDITOR=: in t/test-lib.sh, which was added in 2006 before GIT_EDITOR was invented. That is the one in effect for git subcommands that usually interacts with editors during the test, unless specific tests further override it with test_set_editor helper.

Previous: Stefan HallerNext: Stefan Haller
Message 13 of 15 in “Limitiations of git rebase --preserve-merges --interactive”
  1. Stefan HallerSep 20, 2016
  2. Anatoly BorodinSep 22, 2016
  3. Kevin DaudtSep 22, 2016
  4. Stefan BellerSep 22, 2016
  5. Stefan HallerSep 23, 2016
  6. Johannes SchindelinSep 23, 2016
  7. Stefan BellerSep 23, 2016
  8. Anatoly BorodinSep 22, 2016
  9. Anatoly BorodinSep 22, 2016
  10. Stefan BellerSep 22, 2016
  11. Johannes SchindelinSep 23, 2016
  12. Stefan HallerSep 23, 2016
  13. Junio C HamanoSep 23, 2016
  14. Stefan HallerSep 23, 2016
  15. Johannes SixtSep 23, 2016

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.