File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ k () {
274
274
fi
275
275
if [[ $( command git rev-parse --is-inside-work-tree 2> /dev/null) == true ]]; then
276
276
IS_GIT_REPO=1
277
- GIT_TOPLEVEL=$( git rev-parse --show-toplevel)
277
+ GIT_TOPLEVEL=$( command git rev-parse --show-toplevel)
278
278
else
279
279
IS_GIT_REPO=0
280
280
fi
@@ -401,10 +401,10 @@ k () {
401
401
# If the directory is ignored, skip it
402
402
if command git check-ignore --quiet ${NAME} 2> /dev/null
403
403
then STATUS=' !!'
404
- else STATUS=$( git --git-dir=$GIT_TOPLEVEL /.git --work-tree=$GIT_TOPLEVEL status --porcelain --untracked-files=normal ${${${NAME: a} ## $GIT_TOPLEVEL } #*/ } )
404
+ else STATUS=$( command git --git-dir=$GIT_TOPLEVEL /.git --work-tree=$GIT_TOPLEVEL status --porcelain --untracked-files=normal ${${${NAME: a} ## $GIT_TOPLEVEL } #*/ } )
405
405
fi
406
406
else
407
- STATUS=$( git status --porcelain --ignored --untracked-files=normal $NAME )
407
+ STATUS=$( command git status --porcelain --ignored --untracked-files=normal $NAME )
408
408
fi
409
409
STATUS=${STATUS[1,2]}
410
410
if [[ $STATUS == ' M' ]]; then REPOMARKER=$' \e [0;31m+\e [0m' ; # Tracked & Dirty
You can’t perform that action at this time.
0 commit comments