I have content= $(git diff --cached $line) in my bash script.
But when I execute it, bash throws error
gqqnbig MINGW64 /c/Website/Lender (master)
$ ./hook.sh
Admin/Xpress/BusinessAccountTypeRole_Edit.aspx
diff: unknown option -- git
diff: Try 'diff --help' for more information.
Why doesn't $(git diff --cached $line) work, and how to fix it?
