question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Git status files are not recognised when in root directory

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pcottlecommented, May 15, 2018

Good point, updated the readme

0reactions
mirfilipcommented, May 15, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found