Skip to content

Ghostflow cli support

Ben Boeckel requested to merge ben.boeckel/smtk:ghostflow-cli-support into master

Here's a setup for doing what the robot does for you locally. We can update the Docker image as needed. Any suggestions where to push it?

Easy setup:

% docker build -t ghostflow:smtk utilities/ghostflow
% git config alias.ghostflow "!docker run --rm -v .:/root:Z ghostflow:smtk ghostflow-cli"
% git ghostflow help
ghostflow-cli 0.1.0
<snip>

Things you can do:

  • Check your topic (headed for master): git ghostflow check run topic -t master
  • Reformat your topic: git ghostflow reformat commits master HEAD (this just makes the reformatted branch; git reset --hard $output_commit to make your branch point to it)
  • Reformat your topic, update the ref, and check it out: git ghostflow reformat -C -r $topic_name commits master $topic_name

Once we upgrade to a modern clang-format, the Docker file can be dropped and using a local copy of the binary should work much better (at least on macOS; Windows is still…untested).

Cc: @dcthomp @john.tourtellott @bob.obara @aron.helser @brad.king

Merge request reports