Skip to content

feat: Add an example for the rebase API#7150

Open
ambv wants to merge 2 commits intolibgit2:mainfrom
ambv:rebase-example
Open

feat: Add an example for the rebase API#7150
ambv wants to merge 2 commits intolibgit2:mainfrom
ambv:rebase-example

Conversation

@ambv
Copy link
Contributor

@ambv ambv commented Oct 21, 2025

This demo demonstrates the interesting bits of rebasing, i.e. what happens in the case of a conflict and how to abort. To do that, the demo:

  • creates an initial repository with some commits;
  • clones that repository;
  • creates divergent commits in both repositories;
  • shows aborting a rebase;
  • shows a successful rebase with "conflict resolution" (in our case we just commit in the conflict marker chevrons).

I also noticed a minor bug in examples/remote.c so I fixed that, too.

ambv added 2 commits October 21, 2025 16:03
This demonstrates the interesting bits of rebasing, i.e. what happens
in the case of a conflict and how to abort.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant