pkgin/pkgin d4565e8. messages.h

messages: Remove unused.
DeltaFile
+0-3messages.h
+0-31 files

pkgin/pkgin 08e366b. pkg_check.c

pkg_check: Improve readability.
DeltaFile
+1-2pkg_check.c
+1-21 files

pkgin/pkgin 67f2f4b. main.c

main: Remove support for -F.

Has been deprecated and silently ignored for 6 years.  If anyone is
still using it under the false impression that it does anything then
it's about time to start correcting them.
DeltaFile
+1-4main.c
+1-41 files

pkgin/pkgin 7051d67. order.c

order: Simplify reverse list insertion.
DeltaFile
+4-8order.c
+4-81 files

pkgin/pkgin 0b0f205. impact.c

impact: Inline update_level_if_higher().

Only one caller, not worth it.
DeltaFile
+2-8impact.c
+2-81 files

pkgin/pkgin c33ed81. actions.c

actions: Drop unnecessary verb_flag().
DeltaFile
+1-13actions.c
+1-131 files

pkgin/pkgin 22a92c3. fsops.c

fsops: Simplify read_repos().
DeltaFile
+9-15fsops.c
+9-151 files

pkgin/pkgin a89cc5c. tools.c preferred.c

preferred: Inline the only trunc_str() caller.
DeltaFile
+0-17tools.c
+4-2preferred.c
+0-3tools.h
+4-223 files

pkgin/pkgin faeec85. tools.c

tools: Simplify strreplace().
DeltaFile
+11-17tools.c
+11-171 files

pkgin/pkgin 97088c6. preferred.c

preferred: Use strlcpy.
DeltaFile
+1-1preferred.c
+1-11 files

pkgin/pkgin a9a7fe5. tools.c

tools: Simplify check_yesno().
DeltaFile
+10-25tools.c
+10-251 files

pkgin/pkgin 2d02992. actions.c

actions: Add action_list_* for simpler management.
DeltaFile
+103-38actions.c
+103-381 files

pkgin/pkgin 743d3ab. pkg_str.c

pkg_str: Fix memory leak in find_preferred_pkg().
DeltaFile
+9-4pkg_str.c
+9-41 files

pkgin/pkgin 196c3bd. summary.c pkgindb.c

summary: Use a prepared statement for package INSERTs.

Compile the INSERT once per import and bind values per package, rather
than building and parsing SQL text for every package.  Shaves another
1.5 million or so instructions off from "pkgin update".
DeltaFile
+79-61summary.c
+9-4pkgindb.c
+1-1pkgin.h
+89-663 files

pkgin/pkgin 7e66a77. summary.c pkgindb.c

summary: Use prepared statements for per-row inserts.

Shaves around a million instructions off 'pkgin update'.
DeltaFile
+86-15summary.c
+37-0pkgindb.c
+5-5pkgindb_queries.c
+3-0pkgin.h
+131-204 files

pkgin/pkgin 114611d. autoremove.c

autoremove: Use the depends hash.
DeltaFile
+16-13autoremove.c
+16-131 files

pkgin/pkgin 4b57424. preferred.c

preferred: Early exit is_preferred() if empty.
DeltaFile
+3-0preferred.c
+3-01 files

pkgin/pkgin 310a576. summary.c

summary: Pre-compute column length.

Avoids snprintf() inside the hot path.  Measured to reduce about 2.5
million instructions from "pkgin update" on my macOS, and drop runtime
from 2.2 seconds to 1.3.
DeltaFile
+8-4summary.c
+8-41 files

pkgin/pkgin a922110. pkglist.c

pkglist: Use hash slot in pkg_is_installed().
DeltaFile
+3-4pkglist.c
+3-41 files

pkgin/pkgin 16fa271. pkg_str.c

pkg_str: Avoid leak in pkgname_from_pattern().
DeltaFile
+5-3pkg_str.c
+5-31 files

pkgin/pkgin f0b16fd. pkg_check.c

pkg_check: Simplify pkg_conflicts() loop.
DeltaFile
+14-18pkg_check.c
+14-181 files

pkgin/pkgin 2c88330. actions.c tools.c

tools: Add and consolidate humanize_size().
DeltaFile
+6-16actions.c
+11-0tools.c
+2-6pkgindb.c
+4-0tools.h
+23-224 files

pkgin/pkgin b9443df. pkglist.c sqlite_callbacks.c

pkglist: Add and use consolidated pattern_pkglist().
DeltaFile
+20-0pkglist.c
+2-11sqlite_callbacks.c
+1-6depends.c
+1-5impact.c
+1-0pkgin.h
+25-225 files

pkgin/pkgin 8a9a679. depends.c

depends: Use consolidated new_pattern_depend().
DeltaFile
+27-55depends.c
+27-551 files

pkgin/pkgin 53a0d08. pkglist.c

pkglist: Simplify setfmt().
DeltaFile
+11-14pkglist.c
+11-141 files

pkgin/pkgin fd83f5d. actions.c

actions: Simplify switch cases.
DeltaFile
+3-19actions.c
+3-191 files

pkgin/pkgin 3d1b799. autoremove.c

autoremove: Use consolidated show_keep_list() helper.
DeltaFile
+11-21autoremove.c
+11-211 files

pkgin/pkgin 5fbff00. impact.c

impact: Add add_deps_to_impact() helper.

Consolidate identical code in two places.
DeltaFile
+31-29impact.c
+31-291 files

pkgin/pkgin 143b2f2. pkglist.c impact.c

pkglist: Consolidate a bunch of pkglist handling.
DeltaFile
+41-63pkglist.c
+4-18impact.c
+45-812 files

pkgin/pkgin 1dfba7a. actions.c autoremove.c

actions: Implement action_list_sorted() helper.

Avoids duplicated code for sorting different ACTION_* types.
DeltaFile
+26-32actions.c
+3-6autoremove.c
+1-1pkgin.h
+30-393 files