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

Better visual separation of hunks in `git add -p`

From
EBEugenio Bargiacchi <svalorzen@gmail.com>
Date
Mar 28, 2024, 13:36 UTC
Message-ID
<CAHfn=+snXChcPFiEgxvK=XFCq2uVMKQTyfrN9RNfAod18d0V=Q@mail.gmail.com>
Hello,

I'm looking for a way to print some sort of separator between hunks when running `git add -p`, as I have a bit of trouble detecting when the previous hunk begins and the current one starts. Being able to print an empty line or a couple lines filled with "=======" would really help me out.

There seems to be a StackOverflow post with a similar request but unfortunately no answers: https://stackoverflow.com/questions/68534891/insert-blank-lines-between-git-add-patch-prompts

Thanks in advance for any help. Best, Eugenio

Next: Junio C Hamano
Message 1 of 14 in “Better visual separation of hunks in `git add -p`”
  1. Eugenio BargiacchiMar 28, 2024
  2. Junio C HamanoMar 28, 2024
  3. Eugenio BargiacchiMar 28, 2024
  4. Dragan SimicMar 28, 2024
  5. Junio C HamanoMar 28, 2024
  6. Dragan SimicMar 28, 2024
  7. Eugenio BargiacchiMar 28, 2024
  8. Dragan SimicMar 28, 2024
  9. Eugenio BargiacchiMar 28, 2024
  10. Dragan SimicMar 28, 2024
  11. Junio C HamanoMar 28, 2024
  12. Dragan SimicMar 28, 2024
  13. Eugenio BargiacchiMar 28, 2024
  14. Dragan SimicMar 28, 2024

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.