commit 5934f7c040de3920d1278f70296f602df7d735d9
parent f39b75f20ec009976f58d66d1f376bc26911eb0d
Author: Kévin Le Gouguec <kevin.legouguec@gmail.com>
Date: Sat, 31 Mar 2018 09:37:09 +0200
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.
Diffstat:
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/index.md b/index.md
@@ -1,6 +1,5 @@
# Peniblec's Memory Leaks
-## possibly lost: 530 words in 1 pages
-## still reachable: 240 words in 1 pages
+## still reachable: 232 words in 1 pages
Hi! I am a software engineer interested in [a bunch of things].
diff --git 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"