Skip to content

Instantly share code, notes, and snippets.

@wapiflapi
Created July 13, 2021 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wapiflapi/42c3cb3bc369fc50bf09184a93b7b5d8 to your computer and use it in GitHub Desktop.
Save wapiflapi/42c3cb3bc369fc50bf09184a93b7b5d8 to your computer and use it in GitHub Desktop.
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
TEMPLATE_GIT=$SCRIPT_DIR
TEMPLATE_PATH=something/censored/
GIT_DIR=$TEMPLATE_GIT/.git git ls-files $TEMPLATE_PATH |
while read file;
do diff $TEMPLATE_GIT/$file "${file//"$TEMPLATE_PATH"/}";
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment