From: Christian Neukirchen Date: Fri, 09 Sep 2016 17:05:47 GMT Subject: Re: git commit -p with file arguments Message-ID: <87poodatqs.fsf@juno.home.vuxu.org> In-Reply-To: Jacob Keller writes: > 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 " 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 http://chneukirchen.org