# Disable uncommit button for parentless commits \(\#25983\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0200dda83d9c842848f860fa0a265b61b07b2abf

Requested commit: 0200dda83d9c842848f860fa0a265b61b07b2abf

Commit: 0200dda83d9c842848f860fa0a265b61b07b2abf

Tree: a48a320ae72c6c0b946a68c8acc4ed18be2e13e5

Author: Julia Ryan

Committer: GitHub

## Message

```
Disable uncommit button for parentless commits (#25983)

Closes #25976

There's a couple states that this covers:
- upon `git init`, no footer is shown at all
- after 1 commit (or when on any parentless commit), the uncommit button
is ~disabled~ hidden
- otherwise commit button is shown

Also updated the button with "meta" tooltip showing human readable
description and git command.

Release Notes:

- N/A

---------

Co-authored-by: Nate Butler <iamnbutler@gmail.com>
```

## Parents

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

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