X-Git-Url: http://unremediatedgender.space/source?p=Ultimately_Untrue_Thought.git;a=blobdiff_plain;f=notes%2Fmemoir_wordcounts.py;h=ef36de5b4b52dfa05a8b5fc921f96f3bf232140a;hp=eeb297acb07ed347c826147725175b9104bbbb20;hb=a4d913d5ed2447ea496a2972748272d4ab678b8b;hpb=b4e65014ae63f846ad3d4074280968c448093031 diff --git a/notes/memoir_wordcounts.py b/notes/memoir_wordcounts.py index eeb297a..ef36de5 100755 --- a/notes/memoir_wordcounts.py +++ b/notes/memoir_wordcounts.py @@ -38,12 +38,14 @@ def look_back(): wordcounts = [] keep_going = True while keep_going: - subprocess.run(["git", "checkout", "HEAD~10"]) + subprocess.run(["git", "checkout", "HEAD~5"]) wordcount = wordcount_at_this_sha() date = date_at_this_sha() if date < datetime.date(2022, 4, 1): keep_going = False wordcounts.append((date, wordcount)) + # don't leave the head detached + subprocess.run(["git", "checkout", "master"]) return sorted(wordcounts)