Skip to content

Commit 1c1d4ec

Browse files
authored
Merge pull request #9343 from gitbutlerapp/fix-createblankcommit-parent-id
fix: use parent_id in CreateBlankCommitParameters
2 parents e574ebc + b633250 commit 1c1d4ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/but-tools/src/workspace.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ pub struct CreateBlankCommitParameters {
679679
This should be the ID of an existinf commit in the stack.
680680
</important_notes>
681681
")]
682-
pub commit_id: String,
682+
pub parent_id: String,
683683
}
684684

685685
impl Tool for CreateBlankCommit {
@@ -730,7 +730,7 @@ pub fn create_blank_commit(
730730
params: CreateBlankCommitParameters,
731731
) -> Result<Vec<(gix::ObjectId, gix::ObjectId)>, anyhow::Error> {
732732
let stack_id = StackId::from_str(&params.stack_id)?;
733-
let commit_oid = gix::ObjectId::from_str(&params.commit_id)?;
733+
let commit_oid = gix::ObjectId::from_str(&params.parent_id)?;
734734
let commit_oid = commit_oid.to_git2();
735735

736736
let message = format!(

0 commit comments

Comments
 (0)