Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix git processing #337

Merged
merged 3 commits into from
Jan 24, 2020
Merged

Fix git processing #337

merged 3 commits into from
Jan 24, 2020

Conversation

avdv
Copy link
Collaborator

@avdv avdv commented Jan 24, 2020

Description

avdv and others added 3 commits January 20, 2020 21:37
```
.rubocop.yml: Metrics/LineLength has the wrong namespace - should be Layout
```
git does not report any status for empty directories, and it also does not
report any status for directories without any modified, untracked or ignored
files.

To correctly show the status, we need to check whether the directory is empty if
git did not report any status codes. When empty, show it as "not interesting",
otherwise the "no changes" green check mark is shown.

Note, I am specifically not using the untracked marker, as that would mean there
is some interesting file inside the directory which could be added.

Fixes athityakumar#334.
@codecov-io
Copy link

codecov-io commented Jan 24, 2020

Codecov Report

Merging #337 into master will decrease coverage by 0.18%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #337      +/-   ##
==========================================
- Coverage   89.24%   89.06%   -0.19%     
==========================================
  Files           8        8              
  Lines         493      494       +1     
==========================================
  Hits          440      440              
- Misses         53       54       +1
Impacted Files Coverage Δ
lib/colorls/core.rb 89.81% <0%> (-0.42%) ⬇️
lib/colorls/git.rb 77.77% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c51cd9...fb39a9d. Read the comment docs.

@avdv avdv changed the title Fix git Fix git processing Jan 24, 2020
@avdv avdv merged commit 11107bd into athityakumar:master Jan 24, 2020
@avdv avdv deleted the fix-git branch January 24, 2020 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants