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

Re: [PATCH 2/2] add--interactive.perl: specify --no-color explicitly

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 8, 2020, 18:51 UTC
Message-ID
<nycvar.QRO.7.76.6.2009082047220.54@tvgsbejvaqbjf.bet>
In-Reply-To
<20200907081739.GB1263923@coredump.intra.peff.net>
Hi Peff,
ACK on both patches, just one clarification:
On Mon, 7 Sep 2020, Jeff King wrote:
Show 6 quoted lines
> [...]
>
> One could argue that the test isn't very realistic; it's setting up this
> "pretend there's a pager" situation to get around the tty restrictions
> of the test environment. So one option would be to move back towards
> using a real tty. [...]

The main reason why we moved away from the "real" TTY is that the TTY we simulate in `t/test-terminal.perl` is not actually real at all on Windows. Instead, it is the Cygwin/MSYS2-emulated version of a PTY, and as a consequence `git.exe` simply has no way of accessing it.

Which means that by moving "back towards using a real tty" we would lose all test coverage on Windows, which is not a thought I like to entertain.

Ciao, Dscho

Previous: Junio C HamanoNext: Jeff King
Message 6 of 7 in “some minor add--interactive fixes”
  1. 0/2 some minor add--interactive fixesJeff King, Sep 7, 2020
  2. 1/2 add-patch: fix inverted return code of repo_read_index()Jeff King, Sep 7, 2020
  3. 2/2 add--interactive.perl: specify --no-color explicitlyJeff King, Sep 7, 2020
  4. Jeff KingSep 7, 2020
  5. Junio C HamanoSep 8, 2020
  6. Johannes SchindelinSep 8, 2020
  7. Jeff KingSep 9, 2020

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.