Thread (1 message) 1 message, 1 author, 2016-09-09

Re: git commit -p with file arguments

From: Christian Neukirchen <hidden>
Date: 2016-09-09 17:10:24

Jacob Keller [off-list ref] 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 <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  [off-list ref]  http://chneukirchen.org
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help