8000 git-status for empty directory is misleading · Issue #363 · athityakumar/colorls · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
git-status for empty directory is misleading #363
Closed
@DidgetyTech

Description

@DidgetyTech

Description

When I view a directory that does not include a git-tracked file, it has the ✓, indicating tracked and unmodified.

Recreate

mkdir mvp-status
cd mvp-status
git init
Initialized empty Git repository in /Users/XXX/code/mvp-status/.git/

mkdir untracked-dir
colorls --git-status                                                                                                                                                                                                     
     ✓    untracked-dir/

Screen Shot 2020-05-27 at 22 22 05

untracked-dirdoes not have a file in it, let alone one that git is aware of. I expect it to not have an icon (aligns with how git sees the directory) or have the question marks for untracked.

When I add a file it behaves as expected, with the ? status.

touch untracked-dir/README.md
colorls --git-status
     ?    untracked-dir/

Screen Shot 2020-05-27 at 22 26 34

  • Relevant Issues : (none)
  • Relevant PRs : (none)
  • Type of issue :
    • Installation
    • Font-related
    • Feature request
    • Bug in existing feature
    • Developer mode : Code quality / Tests / Documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0