From: Junio C Hamano Date: Sat, 09 Nov 2019 07:14:53 GMT Subject: Re: Change behavior of git add --patch on newly added file? Message-ID: In-Reply-To: Junio C Hamano writes: > Emily Shaffer writes: > >> Should 'git add -p ' do the same thing as 'git add -N >> '? > ... > Patches welcome, but you may want to check with Dscho as there is an > effort going on to reimplement the entire "add -i" machinery in C. Oh, having said all that, for a newly added file, all you have is a hunk that is full of added lines and nothing else, so even 's'plit interactive subcommand of "add -p" interface would not do anything. So I am not sure if performing an implicit "add -N" upfront would help your use case that much. For that, you'd need to extend hunk splitting UI a bit more, so that the user can split a hunk that only adds lines into two at a desired point in the hunk.