-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #59
- Loading branch information
Showing
4 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ import strformat | |
import algorithm | ||
import hts/private/hts_concat | ||
import hts/fai | ||
import os | ||
|
||
const formatVersion* = 2'u8 | ||
|
||
|
@@ -16,6 +17,21 @@ type Site* = object | |
## counts if swap is true. | ||
flip*:bool | ||
|
||
|
||
proc update_with_glob*(files: var seq[string]) = | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
brentp
Author
Owner
|
||
var toadd = newSeqOfCap[string](256) | ||
for i in 0..<min(files.len, 10): | ||
if files[i] == "++": | ||
toadd.add(files[i]) | ||
continue | ||
for w in files[i].walkFiles: | ||
toadd.add(w) | ||
|
||
if files.len > 10: | ||
files = toadd & files[10..files.high] | ||
else: | ||
files = toadd | ||
|
||
{.push checks: off, optimization:speed.} | ||
proc toSite(toks: seq[string]): Site = | ||
result = Site() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@brentp why did you decide to do something for <=10 vs >10 files here?
I'm going to copy this for strling merge