Re: git commit -p with file arguments
- From
Christian Neukirchen <chneukirchen@gmail.com>
- Date
- Sep 9, 2016, 17:05 UTC
- Message-ID
- <87poodatqs.fsf@juno.home.vuxu.org>
- In-Reply-To
- <CA+P7+xoN+q_Kst=qXG_HRznxbN7cbyi5uZe15zq1c16EifeK1Q@mail.gmail.com>
Jacob Keller <jacob.keller@gmail.com> writes:
Show 6 quoted lines
> It wants to commit bar too because you already added bar before. It works like: > > "git add bar && git add -p foo && git commit" does it not? > > I fail to see why "git commit -p <path>" would unstage the bar you > already added? Or am I missing some assumption here?
Yet the commit message comment says: # Explicit paths specified without -i or -o; assuming --only paths...
But files are committed which were not given on the command line.
My confusion is that I use "git commit" with explicit files, yet other files are committed. AFAICS, this only happens with -p.
-- Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org