Thank you! I arrived at this to re-run a command (often unit tests)
when any git-controlled file changes:
```
#!/bin/sh
set -e
git ls-files $(git rev-parse --show-cdup) | entr -cr $@
```
--
You received this message because you are subscribed to the Google Groups Git
for human beings group.
To
From: Sam Roberts vieuxt...@gmail.com
Alternatively, there must be a command that gives the path to the root
of the current .git tree, what is that command? I could use its output
as an argument to git ls-files...
git rev-parse --show-toplevel
There are several related options; see the
I want to get a list, relative to my current working directory (which
may be below the project root) of all files, including ones added with
`git add -N`, but not including any files not under version control...
git ls-files almost works... but only lists files from . down. Is
there a simple