In vanilla Magit I can use C-u s to do a "git add -N", can I do this with evil-magit?
fnune opened this issue · 9 comments
I want to use git add -N
with Magit.
-N, --intent-to-add
Record only the fact that the path will be added later.
An entry for the path is placed in the index with no
content. This is useful for, among other things, showing
the unstaged content of such files with git diff and
committing them with git commit -a.
This behavior is supported by vanilla Magit by using C-u s
, it was implemented in this PR.
How can I do this with evil-magit?
P.S. Thank you for this package :)
I'm not sure how this would be handled in evil-magit. Do you have a key binding in mind?
I was thinking it could be the default s
action when adding new files. A subsequent s
could actually stage the changes?
It’s not a bad suggestion but I’d rather stay close to the way Magit works. I think that’s a suggestion that could be made on the Magit side.
What about just n
? for git add -N
or i<n>tent
?
How about capital I
(i) for <i>ntent
? Currently I get an "ignore" dialog but that also works with lowercase i
. We could:
- Keep lowercase
i
for the ignore dialog. - Use uppercase
I
forgit add -N
.
Cool! Thanks!
Working great on the new release btw.