News for hackers. Stuff that matters.
Re:Magit 3.0 by iudqnolq on Wednesday May 26, 2021 @08:13AM (#27289481)
> That sounds like interactive staging (`git add -p` or `git add -i`). You can do the same in magit, in the status window by selecting the diff lines you want to stage. I use evil-mode and use visual mode for that selection. Am I missing something about your requirement?

At least in magit, you get the error "new file ... depends on old contents" if you try to stage a hunk of a newly created file.

(i.e. echo "foo\nbar" > file, then stage only "bar")

Re:Magit 3.0 by sreevisakh on Wednesday May 26, 2021 @09:08AM (#27289998)
> At least in magit, you get the error "new file ... depends on old contents" if you try to stage a hunk of a newly created file.

I see what you mean.