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

Setting pager.add=true breaks add --patch

From
RHRavi (Tom) Hale <ravi@hale.ee>
Date
Oct 2, 2016, 10:50 UTC
Message-ID
<e8bdb434-432b-57c6-5cb4-283aca08ab0b@hale.ee>
Given:
1) git version 2.10.0.GIT
2) The following configuration:
=======================
[core]
   pager = less -FRX --tabs=4
[pager]
   add = true
=======================
3) A patch hunk longer than a screen
THEN:
less will be invoked as expected.

However, upon exiting less, I am dropped back to the shell, whereas I would expect to see: Stage this hunk [y,n,q,a,d,/,j,J,g,e,?]?

-- 
Tom Hale
Next: Anatoly Borodin
Message 1 of 4 in “Setting pager.add=true breaks add --patch”
  1. Ravi (Tom) HaleOct 2, 2016
  2. Anatoly BorodinOct 2, 2016
  3. Tom HaleOct 6, 2016
  4. Kevin DaudtOct 6, 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.