threads / discuss / 15344

git commit -p? --loop?

Subject: git commit -p? --loop?

## tl;dr

2 messages between Sep 3, 2008 and Sep 3, 2008.

replies: 1people: 2as markdown or json

Ittay Dror· Sep 3, 2008, 08:18 UTC · lore
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>
Sverre Rabbelier· Sep 3, 2008, 14:01 UTC · re: Ittay Dror · lore

Re: git commit -p? --loop?

On Wed, Sep 3, 2008 at 10:18, Ittay Dror <ittay.dror@gmail.com> wrote:
Show 5 quoted lines
> 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)?
I wonder if "git commit --interactive" would not suit your needs?
-- 
Cheers,

Sverre Rabbelier

← back to recent threads