git diff(1) --cached --name-only; git diff(1) --name-only
Show changes between commits, commit and working tree, etc
Show changes between the working tree and the index or a tree, changes between the index and a tree,
changes between two trees, or changes between two files on disk.
--name-only
    Show only names of changed files.
Commands separated  by  a ; are executed sequentially; the shell waits for each command to terminate in turn.  The
return status is the exit status of the last command executed.
source manpages: git-diffgit-diff