Re: [PATCH RFC] add: Do not open editor if patch is empty

2015-04-26 Thread Eric Sunshine
On Sun, Apr 26, 2015 at 1:03 PM, Alexander Kuleshov wrote: > If we'll run 'git add -e ' on a path which has no > difference with the current index, empty editor will open. This > patch prevents this behaviour and checks that patch is not empty > before an editor with patch will be opened. > > Sign

[PATCH RFC] add: Do not open editor if patch is empty

2015-04-26 Thread Alexander Kuleshov
If we'll run 'git add -e ' on a path which has no difference with the current index, empty editor will open. This patch prevents this behaviour and checks that patch is not empty before an editor with patch will be opened. Signed-off-by: Alexander Kuleshov --- builtin/add.c | 4 ++-- 1 file chan