git-sim icon indicating copy to clipboard operation
git-sim copied to clipboard

Feature request: `--rebase-merges` and `--onto` options for `rebase`

Open caarmen opened this issue 2 years ago • 1 comments
trafficstars

It'd be cool to visualise a rebase using the --rebase-merges and --onto options. Looks like it's not yet supported.

git-sim rebase --rebase-merges 185d138a --onto another-branch
usage: git-sim [-h] [--title TITLE] [--logo LOGO] [--outro-top-text OUTRO_TOP_TEXT] [--outro-bottom-text OUTRO_BOTTOM_TEXT] [--show-intro] [--show-outro] [--media-dir MEDIA_DIR] [--low-quality] [--light-mode]
               [--speed SPEED] [--animate] [--max-branches-per-commit MAX_BRANCHES_PER_COMMIT] [--max-tags-per-commit MAX_TAGS_PER_COMMIT] [-d] [-r] [--video-format VIDEO_FORMAT]
               {log,status,add,restore,commit,stash,branch,tag,reset,revert,merge,rebase,cherry-pick} ...
git-sim: error: unrecognized arguments: --rebase-merges --onto another-branch

Currently only one argument for rebase is supported: branch:

$ git-sim rebase -h
usage: git-sim rebase [-h] branch

positional arguments:
  branch      The branch to simulate rebasing the checked-out commit onto

options:
  -h, --help  show this help message and exit

caarmen avatar Feb 01 '23 09:02 caarmen

Hi @caarmen!

Thanks for the suggestion. I would love to get this in at some point. I'm working on various updates/enhancements for the tool, so don't have a timeline at the moment, but I'll keep this open for now!

initialcommit-io avatar Feb 02 '23 00:02 initialcommit-io