git-nomad icon indicating copy to clipboard operation
git-nomad copied to clipboard

--quiet should suppress stderr output

Open rraval opened this issue 1 year ago • 0 comments

Tab completion scripts may wish to execute git-nomad in non-.git directories and it's annoying to have to redirect stderr.

$ git-nomad ls --print=ref --quiet                                                                                                                                                                                         
Error: command failure
$ cd "/home/rraval" && "git" "rev-parse" "--absolute-git-dir"
# status: exit status: 128
# ---- STDERR ----
fatal: not a git repository (or any of the parent directories): .git

This should output nothing and just set a non-zero exit status.

rraval avatar Feb 18 '24 04:02 rraval