Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Checks untracked files instead of directories #1564

Closed
wants to merge 1 commit into from

3 participants

@zellux

When the user creates an empty directory under the repository, the untracked flag will be set on (indicated by a 'hotpink' dot), but if the user want to clear the untracked flag using git diff or git status, he may find nothing changed. Removing --directory flag can avoid this problem. @steeef what do you think?

@steeef

Sounds good to me.

@mcornella

Hi @zellux, remove the other two commits and rebase. Then this will be ok to merge. :+1:

@mcornella mcornella referenced this pull request
Merged

Easy-to-merge #2827

@zellux

Cool, just updated the commit.

@robbyrussell robbyrussell closed this in #2827
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  themes/steeef.zsh-theme
View
2  themes/steeef.zsh-theme
@@ -81,7 +81,7 @@ add-zsh-hook chpwd steeef_chpwd
function steeef_precmd {
if [[ -n "$PR_GIT_UPDATE" ]] ; then
# check for untracked files or updated submodules, since vcs_info doesn't
- if git ls-files --other --exclude-standard --directory 2> /dev/null | grep -q "."; then
+ if git ls-files --other --exclude-standard 2> /dev/null | grep -q "."; then
PR_GIT_UPDATE=1
FMT_BRANCH="(%{$turquoise%}%b%u%c%{$hotpink%}●${PR_RST})"
else
Something went wrong with that request. Please try again.