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

git commit -p? --loop?

From
Ittay Dror <ittay.dror@gmail.com>
Date
Sep 3, 2008, 08:18 UTC
Message-ID
<48BE4839.8080305@gmail.com>
Hi,

I find that many times I make changes to some files that should be part of different commits. What I do then is run 'git add -p' and 'git commit' several times until I commit all hunks. Does it make sense to anyone to add -p option following a '-a' and '--loop' option (that will run until user requests to end or nothing to commit)?

Thanks, Ittay

-- 
--
Ittay Dror <ittay.dror@gmail.com>
Next: Sverre Rabbelier
Message 1 of 2 in “git commit -p? --loop?”
  1. Ittay DrorSep 3, 2008
  2. Sverre RabbelierSep 3, 2008

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.