mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
[GH-ISSUE #333] Where can I ask questions? #150
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @johntheocs on GitHub (Jul 13, 2023).
Original GitHub issue: https://github.com/bootandy/dust/issues/333
First I want to thank you for this wonderful tools. I like it and enjoy reading the code. But I have problems understanding some of the code,
filter.rs.There is
get_biggestfunction, I guess it is to get biggest directories or sub-directories. I tried to print all items inheapbefore callingfill_remaining_linesfunction, and the heap includes every file or directory in the target directory. So it seems the secret should be infill_remaining_linesfunction, but I don't see anywhere comparing the sizes or sorting in the related functions.Can anyone explain it to me? I don't know if this is the right place to ask questions. If not, where?
Thanks again for this wonderful project.
@johntheocs commented on GitHub (Jul 13, 2023):
Claude.ai helped me understand the secret is BinaryHeap, which I knew nothing about before.