projtool.pl: add gc subcommand
commitc5025f48e704d8b97f4d0d2c91080d713a468c1e
authorKyle J. McKay <mackyle@gmail.com>
Mon, 27 Nov 2017 15:56:39 +0000 (27 07:56 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 27 Nov 2017 15:56:39 +0000 (27 07:56 -0800)
treee2ea982025c90d6918617685fa7159fdad333ca8
parentbbc9184f2c845a31a8c160a8581f69c992717cdd
projtool.pl: add gc subcommand

The gc subcommand provides a convenient front-end to running the
gc.sh script on a project.

Ultimately it just runs the gc.sh script on the project.

However, it provides semantics that are more similar to those
of the `git gc` command:

  * show_progress=1 is the default unless --quiet is used
  * at least a mini gc will happen unless --auto is used
  * a full gc can be forced with --force (or the stealth
    alias --aggressive)
  * with --redelta (or the stealth alias --no-reuse-delta)
    deltas will be fully recomputed

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
toolbox/projtool.pl