Re: [git-users] how to convince git ls-files to include ALL files in repo?

2014-11-04 Thread Sam Roberts
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

Re: [git-users] how to convince git ls-files to include ALL files in repo?

2014-11-03 Thread Dale R. Worley
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

[git-users] how to convince git ls-files to include ALL files in repo?

2014-10-31 Thread Sam Roberts
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