git-crypt icon indicating copy to clipboard operation
git-crypt copied to clipboard

a command that allows you to see all the users added to a repo

Open theoryshaw opened this issue 4 years ago • 2 comments

Dumb question, is there a command that allows you to see all the users added to a repo?

theoryshaw avatar Dec 10 '21 18:12 theoryshaw

I don't know of such a command, but this is what I do:

$ git log --oneline | grep git-crypt
63ed9f855 README: Provide a bit more context on git-crypt
e49e88a32 Tell git-crypt to encrypt secrets
9daa6f0f0 Add 1 git-crypt collaborator
648a782ea Add 1 git-crypt collaborator

$ git show 9daa6f0f0
commit 648a782ea40f13f34a4c783a8ece67e8b9fd4113
Author: Nicolai Skogheim
Date:   Thu Aug 23 15:16:30 2018 +0200

    Add 1 git-crypt collaborator
    
    New collaborators:
    
            9A4FF8D4 Nicolai Skogheim <nicolai.skogheim@...>

If you have removed people, there should be commits for that as well.

EDIT: This saves you from looking up each commit: (I just learned about the --grep flag :) )

$ git log --grep="git-crypt"

nicolaiskogheim avatar Dec 20 '21 11:12 nicolaiskogheim

This would be a great feature. Essentially the functionality offered by git secret whoknows: https://git-secret.io/git-secret-whoknows

joelmellon avatar Jan 25 '22 21:01 joelmellon