Skip to content

Commit

Permalink
Rename 'git river restart' to 'git river rebase'
Browse files Browse the repository at this point in the history
  • Loading branch information
borntyping committed Apr 27, 2022
1 parent 4da8d95 commit 4093b69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.idea/
__pycache__/
config.json
dist/
2 changes: 1 addition & 1 deletion git_river/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ def main(ctx: click.Context) -> None:
main.add_command(git_river.commands.repo.fetch_remotes)
main.add_command(git_river.commands.repo.merge_feature_branches)
main.add_command(git_river.commands.repo.tidy_branches)
main.add_command(git_river.commands.repo.restart)
main.add_command(git_river.commands.repo.rebase)
main.add_command(git_river.commands.repo.end)
4 changes: 2 additions & 2 deletions git_river/commands/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ def tidy_branches(path: pathlib.Path, dry_run: bool, mainline: typing.Optional[s
repo.remove_merged_branches(mainline, dry_run=dry_run)


@click.command(name="restart")
@click.command(name="rebase")
@click_repo_option
@click_upstream_remote_option
@click_mainline_option
def restart(
def rebase(
path: pathlib.Path,
upstream: typing.Optional[str],
mainline: typing.Optional[str],
Expand Down

0 comments on commit 4093b69

Please sign in to comment.