cmds: honor safemode for the StageOrUnstageAll action
commit6797a700e36c329d4f7b45dbd2560e1644a8b54b
authorDavid Aguilar <davvid@gmail.com>
Sun, 14 Mar 2021 18:50:07 +0000 (14 11:50 -0700)
committerDavid Aguilar <davvid@gmail.com>
Sun, 14 Mar 2021 18:50:07 +0000 (14 11:50 -0700)
tree6a5f61e8d5a187e9565bb87dbada0dfa49408fe1
parent09082387889ed00b26fdf9180198cfdb065893aa
cmds: honor safemode for the StageOrUnstageAll action

Do not stage untracked files when safemode is enabled and the
ctrl-shift-a hotkeys is used.  This is a useful action, but it
can be less useful due to how it includes untracked files.

Extend safemode to make it so that only modified files are staged
when enabled.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/cmds.py