# git commit -p? --loop?

2 messages from 2008-09-03 to 2008-09-03. Participants: Ittay Dror, Sverre Rabbelier.
Thread: https://gitlist.dev/t/15344

## Ittay Dror, 2008-09-03 08:18

Subject: git commit -p? --loop?
Message-ID: <48BE4839.8080305@gmail.com>
URL: https://gitlist.dev/e/48BE4839.8080305%40gmail.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>

```

## Sverre Rabbelier, 2008-09-03 14:01

Subject: Re: git commit -p? --loop?
Message-ID: <bd6139dc0809030701y4a07c1a4secf08883235af9c0@mail.gmail.com>
URL: https://gitlist.dev/e/bd6139dc0809030701y4a07c1a4secf08883235af9c0%40mail.gmail.com
In-Reply-To: <48BE4839.8080305@gmail.com>

```
On Wed, Sep 3, 2008 at 10:18, Ittay Dror <ittay.dror@gmail.com> wrote:
> 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

```
