~skeeto/public-inbox

Don't subtract line counts from byte counts v1 PROPOSED

$NAME: 1
 Don't subtract line counts from byte counts

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~skeeto/public-inbox/patches/32361/mbox | git am -3
Learn more about email & git

[PATCH] Don't subtract line counts from byte counts Export this patch

# HG changeset patch
# User Christopher Wellons <wellons@nullprogram.com>
# Date 1652825911 14400
#      Tue May 17 18:18:31 2022 -0400
# Node ID 4a47258ddaee3bf92dcf5825402880bcbf6eb30a
# Parent  f7d49e0c0cf9fb14e106eaccd25330eaff12e854
Don't subtract line counts from byte counts

diff --git a/main.go b/main.go
--- a/main.go
+++ b/main.go
@@ -46,7 +46,7 @@
	if child.parent != nil {
		if child.parent.isother {
			child.parent.loc -= child.loc
			child.parent.bcount -= child.loc
			child.parent.bcount -= child.bcount
		}
		for i, c := range child.parent.subdirs {
			if c == child {