{"thread":{"id":"15344","subject":"git commit -p? --loop?","startedAt":"2008-09-03T08:18:01Z","lastAt":"2008-09-03T14:01:46Z","messageCount":2,"participants":["Ittay Dror","Sverre Rabbelier"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"89592","messageId":"48BE4839.8080305@gmail.com","threadId":"15344","inReplyTo":null,"subject":"git commit -p? --loop?","fromName":"Ittay Dror","fromEmail":"ittay.dror@gmail.com","sentAt":"2008-09-03T08:18:01Z","receivedAt":"2008-09-03T08:18:01Z","isPatch":false,"sender":{"key":"ittay.dror@gmail.com","avatar":"https://gravatar.com/avatar/0dc47ece3354a295768075bb5afa328d49cda722c9f3100029ada80ee4561e22?d=mp&s=160"},"body":"Hi,\n\nI find that many times I make changes to some files that should be part \nof different commits. What I do then is run 'git add -p' and 'git \ncommit' several times until I commit all hunks. Does it make sense to \nanyone to add -p option following a '-a' and '--loop' option (that will \nrun until user requests to end or nothing to commit)?\n\nThanks,\nIttay\n\n-- \n--\nIttay Dror <ittay.dror@gmail.com>\n"},{"id":"89628","messageId":"bd6139dc0809030701y4a07c1a4secf08883235af9c0@mail.gmail.com","threadId":"15344","inReplyTo":"48BE4839.8080305@gmail.com","subject":"Re: git commit -p? --loop?","fromName":"Sverre Rabbelier","fromEmail":"alturin@gmail.com","sentAt":"2008-09-03T14:01:46Z","receivedAt":"2008-09-03T14:01:46Z","isPatch":false,"sender":{"key":"alturin@gmail.com","avatar":null},"body":"On Wed, Sep 3, 2008 at 10:18, Ittay Dror <ittay.dror@gmail.com> wrote:\n> I find that many times I make changes to some files that should be part of\n> different commits. What I do then is run 'git add -p' and 'git commit'\n> several times until I commit all hunks. Does it make sense to anyone to add\n> -p option following a '-a' and '--loop' option (that will run until user\n> requests to end or nothing to commit)?\n\nI wonder if \"git commit --interactive\" would not suit your needs?\n\n-- \nCheers,\n\nSverre Rabbelier\n"}]}