summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff_--dirstat_--cc_master~1_master
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2020-01-16 08:33:06 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-01-16 14:10:21 -0800
commitd660a30ceb9d8bd9940be82d240901c87999186b (patch)
tree1dd87ac8eb5f06dbc95bb00be5478131e0dc7bfe /t/t4013/diff.diff_--dirstat_--cc_master~1_master
parentbuilt-in add -i: offer the `quit` command (diff)
downloadtgif-d660a30ceb9d8bd9940be82d240901c87999186b.tar.xz
built-in add -i: do not try to `patch`/`diff` an empty list of files
When the user does not select any files to `patch` or `diff`, there is no need to call `run_add_p()` on them. Even worse: we _have_ to avoid calling `parse_pathspec()` with an empty list because that would trigger this error: BUG: pathspec.c:557: PATHSPEC_PREFER_CWD requires arguments So let's avoid doing any work on a list of files that is empty anyway. This fixes https://github.com/git-for-windows/git/issues/2466. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_--dirstat_--cc_master~1_master')
0 files changed, 0 insertions, 0 deletions