Giter Club home page Giter Club logo

git-identities's People

Contributors

woalk avatar

Stargazers

 avatar

Watchers

 avatar  avatar

git-identities's Issues

GPG key support

Implement support of GPG key switching based on identity.

GPG keys are also part of an identity and one may not want to commit with the wrong or without GPG key if you have a key for your identity.

  • The key should be optional when calling git identities add <id> <name> <email> [<gpg-id>]
  • The key should be changeable with git identities update --key <gpg-id>
  • The key should be checked when searching for the currently selected identity (most importantly in checks.py):
    • If no key is set, but name and email match an identity with a key (and the same identity does not exist with a key as well), it should be shown as an error and not be committable. It should be shown as a warning in list and show (e.g. mark the selected identity with an exclamation mark instead of an askerisk).
    • If a key is set, but name and email match an identity without key (and the same identity doesn't exist without key), it should also be treated that way.
  • When changing from an identity with a key to an identity without key, the selected key config should be removed.

There's room for discussion on what to check for correct key use.
Suggest commit -S aliases, switch git log aliases to automatically include GPG information based on the repo context, etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.