gitbutler/crates/gitbutler-branch-actions/tests/virtual_branches
Sebastian Thiel 7ce143954f
Do not dynamically calculate the head commit when listing virtual branches.
That way, the head is static which allows to re-use the worktree status across
multiple related calls.

Also, add a way to quickly get the `head_commit()` from a `git2::Repository`.

Note that this may cause breakage in the app, as now it will see the actual
head, not a computed one, but that should also help us to find places that
didn't properly update their state.
2024-08-28 21:16:43 +02:00
..
amend.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
apply_virtual_branch.rs remove async except for in gitbutler-git 2024-07-28 20:47:35 +02:00
convert_to_real_branch.rs Do not dynamically calculate the head commit when listing virtual branches. 2024-08-28 21:16:43 +02:00
create_commit.rs remove async except for in gitbutler-git 2024-07-28 20:47:35 +02:00
create_virtual_branch_from_branch.rs remove async except for in gitbutler-git 2024-07-28 20:47:35 +02:00
delete_virtual_branch.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
init.rs remove async except for in gitbutler-git 2024-07-28 20:47:35 +02:00
insert_blank_commit.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
list_details.rs Assure we can use different merge bases when showing branch details. 2024-08-21 19:28:11 +02:00
list.rs add tests for get_branch_listing_details() 2024-08-21 19:28:11 +02:00
mod.rs Do not dynamically calculate the head commit when listing virtual branches. 2024-08-28 21:16:43 +02:00
move_commit_file.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
move_commit_to_vbranch.rs remove async except for in gitbutler-git 2024-07-28 20:47:35 +02:00
oplog.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
references.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
reorder_commit.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
reset_virtual_branch.rs remove async except for in gitbutler-git 2024-07-28 20:47:35 +02:00
selected_for_changes.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
set_base_branch.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
squash.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
unapply_ownership.rs remove async except for in gitbutler-git 2024-07-28 20:47:35 +02:00
undo_commit.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
update_base_branch.rs Do not dynamically calculate the head commit when listing virtual branches. 2024-08-28 21:16:43 +02:00
update_commit_message.rs remove async except for in gitbutler-git 2024-07-28 20:47:35 +02:00
upstream.rs run the nightly cargo fmt with pnpm fmt 2024-07-28 21:02:40 +02:00
verify_branch.rs remove async except for in gitbutler-git 2024-07-28 20:47:35 +02:00