# git: Make \`git::Commit\` do an amend when amending is pending \(\#54472\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/10afe2ff281feccc1150753ea91951fe860dc0c8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 10afe2ff281feccc1150753ea91951fe860dc0c8

Requested commit: 10afe2ff281feccc1150753ea91951fe860dc0c8

Commit: 10afe2ff281feccc1150753ea91951fe860dc0c8

Tree: 1b1ed42b9ecdf4545b153450689a188d9c6d3c9b

Author: Cole Miller

Committer: GitHub

## Message

```
git: Make `git::Commit` do an amend when amending is pending (#54472)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- The `git::Commit` action (cmd-enter or ctrl-enter) will now commit a
pending amend.
```

## Parents

- [147524879e328513b0883017733462b03b27cf02](https://git.cafe/gitcafe/zed/commit/147524879e328513b0883017733462b03b27cf02?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/10afe2ff281feccc1150753ea91951fe860dc0c8?format=markdown)
