diff 323 B

12345678910
  1. #!/bin/bash
  2. git status
  3. if ! git status | grep 'nothing to commit, working tree clean' >/dev/null; then
  4. read -r -p "Continue to git diff --cached and uncached? or you got something to add? C-c"
  5. #the --cached (aka --staged) is needed to see .gitinfo.log diffs
  6. (git wdiff --cached
  7. git wdiff) | colordiff | less -R
  8. fi