git-driver: expand the short status code for renamed files

This commit is contained in:
John McQuah 2024-02-13 15:20:13 +00:00
parent 1ef86cb3ec
commit 2aea62227c

View File

@ -32,7 +32,7 @@ if [ -d "$REPOSITORY/.git" ]; then
cd "$REPOSITORY"
git checkout -q "$BRANCH"
git fetch -q
git diff --pretty=format: --name-status "$BRANCH" origin/"$BRANCH" | sed "s/M\t/ Edit /g; s/A\t/ Checkout /g; s/D\t/ Delete /g" | sort
git diff --pretty=format: --name-status "$BRANCH" origin/"$BRANCH" | sed "s/M\t/ Edit /g; s/A\t/ Checkout /g; s/D\t/ Delete /g; s/R[0-9]\{3\}\t/ Rename /g" | sort
# git-checkout(1) should ensure the existence of an exclude file,
# whose length needs to be saved to make this driver idempotent.
IGNORE_DEFAULT=$(wc -l .git/info/exclude | cut -d " " -f 1)