In a Unix shell, I can get the parent command using ps -ocommand= -p $PPID. How can I do the same from the Windows shell?
ps -ocommand= -p $PPID
I need this for a Git pre-commit hook that detects whether the commit was initiated with the --amend flag.
--amend
Aucun commentaire:
Enregistrer un commentaire