Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eterm
· 2mo ago · 0 comments
What does that do, add already tracked files only?
Comments
[–]
jdpage
2mo ago
It interactively shows you each change that would be added and lets you decide whether it should be staged or not. Down to the hunk level, so you can partially stage a file if you so choose.
[–]
eterm
OP
2mo ago
Oh, that's neat.
The -p presumably stands for pInteractive with a silent p :)
[–]
oarmstrong
2mo ago
Ha! It’s actually patch (as in select parts of the patch) though I remember it as partial.
[–]
dxdm
2mo ago
There's -i for interactive, lets you add, patch and reset (unstage).
[–]
airstrike
2mo ago
LOL it might stand for "prompt before"
[–]
zelphirkalt
2mo ago
Ah, that's what magit does by default.
[–]
matijs
2mo ago
That would be `git add -u/--update`