Git status files are not recognised when in root directory
See original GitHub issueWhen you are in a git repo and you deal with a file in a root directory of a repo, you can’t choose it with fpp
:
$ file .git
.git: directory // I'm in the repo
$ mkdir test123 && touch test123/asdf
$ touch test
$ git status
Untracked files:
(use "git add <file>..." to include in what will be committed)
test
test123/
$ git status | fpp
No lines matched!!
When you git add test123/asdf
, fpp
can then properly parse it as a path.
I presume this can be similar to #20 and is a consequence of the format of git status
(it just displays a filename, not ./filename
).
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Why doesn't git recognize that my file has been changed ...
I found a way to fix it and I'm still not sure what caused it. Copy your project directory. The missing files will...
Read more >git-status Documentation - Git
git -status - Show the working tree status ... When -u option is not used, untracked files and directories are shown (i.e. the...
Read more >Understanding git status
Being "up-to-date with 'origin/master'." means there is nothing to push. "working directory clean" means all the files in the current directory are being ......
Read more >How To Git Add All Files - devconnected
Using a simple “git status” command, we can inspect the state of our Git working directory. git add all deleted files. In order...
Read more >.gitignore File – How to Ignore Files and Folders in Git
In other words, you don't want to include or commit those specific files to the main version of the project. This is why...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Good point, updated the readme
Sure, I understand. Thx for the tool in the first place! My only moan would be to include this limitation in the docs (it’s a crucial one), this is a 3800 stars project after all.