git-driver: expand the short status code for renamed files
This commit is contained in:
parent
1ef86cb3ec
commit
2aea62227c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user