cmds: prevent StageUntracked from staging all files
commita19348e27860acac456f74cc414625d9d7fe7ff1
authorDavid Aguilar <davvid@gmail.com>
Thu, 4 Jan 2024 02:17:36 +0000 (3 18:17 -0800)
committerDavid Aguilar <davvid@gmail.com>
Thu, 4 Jan 2024 02:19:52 +0000 (3 18:19 -0800)
treeacaa826a9cd9d182800b24076a6cba256181fb23
parentd9ba1ba73d0a29cb263b5564a5bebcbdb8592f3c
cmds: prevent StageUntracked from staging all files

When the list of files to stage is empty then the Stage command, which
is a base class of the StageUntracked command, will fallback to staging
all (modified) files.

This behavior is unwanted when dealing with untracked files. This is
doubly-so when the user has `gui.displayuntracked = false` configured
because the untracked file list will always be empty.

Closes: #1371
Reported-by: @pkzc via github.com
Signed-off-by: David Aguilar <davvid@gmail.com>
CHANGES.rst
cola/cmds.py