DrSensor / DrSensor/gitmanager

Prompt to choose gpgsign key on setup

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
enhancement meta
Dominant language
Rust
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

## Implementation
- [ ] Multiselect which operation to use `gpgsign`
```sh
git config push.gpgsign if-asked
git config commit.gpgsign true
git config tag.gpgsign true
```
- [ ] Select `signingkey` from `list-secret-keys`
```sh
gpg --list-secret-keys --keyid-format long
git config user.signingkey 0123346789ABCDEF
git config user.name Spam Killer
git config user.email spamkiller@dispossable.email
```

## Usage
- [ ] Automatic from url or path
```sh
git setup https://github.com/cli/cli

# or for existing repo
git setup

# works with multiple repos too
git setup ~/Projects/OSS/{ repo1, repo2 }
```
- [ ] Manual on specific branches and/or tags
```sh
git setup --gpgsign hotfix/big-bug feature/branch
```
- [ ] Support wildcards (handy for tags)
```sh
git setup --signingkey 'v3.0.0-[alpha|beta].*'
```
- [ ] `--gpgsign` and `--signingkey` should be the same (to avoid confusion)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.