From 5934f7c040de3920d1278f70296f602df7d735d9 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sat, 31 Mar 2018 09:37:09 +0200 Subject: Rename function "(Un)tracked" rolls better off the tongue than "(un)committed". IMO. I considered keeping track of "possibly lost pages" (i.e. uncommitted files), but it's probably not an interesting metric since it will vary from one computer to another. The whole thing is not rigorous anyway, since tracked files might contain uncommitted modifications. Ah well. I still think it's a somewhat cute analogy. --- update-count.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update-count.sh') diff --git a/update-count.sh b/update-count.sh index e7ebf8f..eb9b5e2 100755 --- a/update-count.sh +++ b/update-count.sh @@ -1,6 +1,6 @@ #!/bin/bash -list-committed () +list-tracked () { GIT_LITERAL_PATHSPECS='' git ls-files '*.md' } @@ -21,7 +21,7 @@ count-leaks () -read words pages < <(list-committed | count-leaks) +read words pages < <(list-tracked | count-leaks) pattern="\([0-9]*\) words in \([0-9]*\) pages" actual="${words} words in ${pages} pages" -- cgit v1.2.3