Skip to content

Instantly share code, notes, and snippets.

@qodunpob
Created August 2, 2018 06:04
Show Gist options
  • Save qodunpob/0c924de9e47045496db5c080bc5c26d2 to your computer and use it in GitHub Desktop.
Save qodunpob/0c924de9e47045496db5c080bc5c26d2 to your computer and use it in GitHub Desktop.
const isDiff = !!spawnSync('git', ['diff'], getSpawnOptions(rootDir, 'pipe')).stdout.toString().trim();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment