Skip to content

Instantly share code, notes, and snippets.

@wapiflapi
Created July 13, 2021 10:31
#!/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