Method
FoundryGitCommitBuilderset_amend
unstable since: 1.2
Declaration [src]
void
foundry_git_commit_builder_set_amend (
FoundryGitCommitBuilder* self,
gboolean amend
)
Description [src]
Sets whether the builder should amend the selected commit. Changing this
property schedules an asynchronous reload of the builder’s diff baseline and
list models, so there can be a delay before staged and unstaged changes
reflect the new mode. While that reload is running
FoundryGitCommitBuilder:busy is TRUE and
FoundryGitCommitBuilder:can-commit is FALSE.
This property is primarily intended for user interfaces which bind to the builder and need to switch an existing builder between normal and amend views. When enabling amend mode, the builder’s commit message is replaced with the message from the commit being amended.
For programmatic single-parent amend flows where the caller already knows
the desired parent for the replacement commit, prefer creating the builder
with that parent using foundry_git_commit_builder_new() and leaving this
property unset. This property is still useful when a UI needs the model
reload behavior, or when preserving the parent set of the commit being
amended matters.
Available since: 1.2
| Sets property | Foundry.GitCommitBuilder:amend |