Closed bendem closed 1 year ago
bisect in the hope it helps:
82f51f0cb1cc03b415690439ad6b563749788f9c is the first bad commit
commit 82f51f0cb1cc03b415690439ad6b563749788f9c
Author: Jacob Stopak <jacob@initialcommit.io>
Date: Thu Mar 2 06:21:32 2023 -0800
Consolidate get_commits and parse_commits methods
Signed-off-by: Jacob Stopak <jacob@initialcommit.io>
git_sim/add.py | 3 +-
git_sim/branch.py | 3 +-
git_sim/cherrypick.py | 17 ++++++------
git_sim/commit.py | 14 +++++-----
git_sim/git_sim_base_command.py | 61 ++++++++++++-----------------------------
git_sim/log.py | 14 ++++------
git_sim/merge.py | 38 +++++++++++--------------
git_sim/rebase.py | 21 +++++++-------
git_sim/reset.py | 9 +++---
git_sim/restore.py | 3 +-
git_sim/revert.py | 16 +++++------
git_sim/stash.py | 3 +-
git_sim/status.py | 3 +-
git_sim/tag.py | 3 +-
14 files changed, 82 insertions(+), 126 deletions(-)
@bendem Thanks I'll test this out and get back to you.
@bendem This also appears to be related to repos with less than 5 commits on the branch being rebased. I will try and fix this and the other related issue at the same time.
@bendem For now, the rebase for diverged branches should work for you as long as both branches have more than 5 commits.
Just released a fix for this! Please use git-sim version 0.2.9 to take advantage of the fixes. You can upgrade git-sim with: pip install git-sim --upgrade
.
I'll close this for now since it's implemented, but please let me know if you have any questions or run into any issues!
Awesome! This is great work.
@bendem There are a bunch of other new features in v0.2.9 if you want to check them out and let me know if you run into any issues or if anything is unclear 😄
Here is a simple reproducer of an error for a simple rebase (one root commit, two branches with one commit in each, rebase on on the other).