-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Support signed commits #46
Comments
The signatures are stripped from commits as I'm changing the commit, and can't just leave the old GPG signature behind. As you noted, leaving it behind would "break" the commit, as it would have an invalid signature. It should be possible to allow git-revise to re-sign each rewritten commit with your personal GPG key. This would need to be done in a similar way to Unfortunately, It may also be possible to keep signing out of the core logic by performing a final signing pass over the modified commit stack after rewriting using existing git commands. I'm not sure how much simpler/easier that would be to implement, however. I don't personally work with GPG signed commits often, so I'm unlikely to work on this. I'd be open to reviewing a pull-request to add support for a feature like this, though. |
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. TODO: * add support for optional '<keyid>' option argument: -S[<keyid>], --gpg-sign[=<keyid>] * write a test * check if merge commits are also signed properly * check for valid mergetag support * update corresponding documentation
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. In contrast to git-commit's options, the keyid used for signing cannot (yet) be specified explicitly but by user.signingKey to prevent using the committer signature as fallback. Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. In contrast to git-commit's options, the keyid used for signing cannot (yet) be specified explicitly but by user.signingKey to prevent using the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index does not cause (re)creation of GPG commit signatures. Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. In contrast to git-commit's options, the keyid used for signing cannot (yet) be specified explicitly but by user.signingKey to prevent using the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index does not cause (re)creation of GPG commit signatures. Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. In contrast to git-commit's options, the keyid used for signing cannot (yet) be specified explicitly but by user.signingKey to prevent using the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index does not cause (re)creation of GPG commit signatures. Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. In contrast to git-commit's options, the keyid used for signing cannot (yet) be specified explicitly but by user.signingKey to prevent using the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index does not cause (re)creation of GPG commit signatures. Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. In contrast to git-commit's options, the keyid used for signing cannot (yet) be specified explicitly but by user.signingKey to prevent using the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index does not cause (re)creation of GPG commit signatures. Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. In contrast to git-commit's options, the keyid used for signing cannot (yet) be specified explicitly but by user.signingKey to prevent using the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index does not cause (re)creation of GPG commit signatures. Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. The keyid used for signing can be specified by an optional argument to '-S' or '--gpg-sign' as for git-commit; if not specified explicitly, default key id is taken from git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures all commits since COMMIT. Heavily-contributed-by: krobelus Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. The keyid used for signing can be specified by an optional argument to '-S' or '--gpg-sign' as for git-commit; if not specified explicitly, default key id is taken from git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Heavily-contributed-by: krobelus Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
Update docs/man.rst and regenerate git-revise.1 Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
Call 'gpg' w/ '--status-fd=2' to prevent gpg output like 'checking the trust db' from appearing in the signature. Suggested-by: Nika Layzell <nika@thelayzells.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
Strip possible CR line endings and prefix each line with the required leading space. Suggested-by: Nika Layzell <nika@thelayzells.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
Check whether the signature creation was successful. Suggested-by: Nika Layzell <nika@thelayzells.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. The keyid used for signing can be specified by an optional argument to '-S' or '--gpg-sign' as for git-commit; if not specified explicitly, default key id is taken from git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
This reverts commit adef0d27b3e9720cf3def3cd4ff9425b3a688ea0.
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes mystor#46 Closes mystor#73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes mystor#46 Closes mystor#73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for that in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is considered a modification, which seems consistent. This logic is applied to all commits in the todo-list for more consistency. The test is a bit large, but the pieces are mostly independenty. I'm not sure if it's worth to have a separate GPG secret key initialization for each test, and I don't know how to share that. Closes # 46 Closes # 73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
GPG-sign commits if option -S/--gpg-sign is given, or if configurations revise.gpgSign or commit.gpgSign are set to true. Unlike Git, we do not support passing the key ID as argument. Git's way of accepting this optional argument is a bit weird. It would be awkward to try to support the same with argparse. So it's probably best to use a separate argument for the key ID in future. For now, the key ID is taken from Git configuration (user.signingKey) or the committer signature as fallback. A call of `git-revise COMMIT --gpg-sign` w/o any changes in the index causes creation of GPG commit signatures for all commits since COMMIT. Conversely, if GPG signing is disabled, git-revise will remove the signature, even if the commits were not modified otherwise. So adding/removing a signature is just another modification, like rewording/rebasing. This logic is applied to all commits in the todo-list. The test is a bit large, but the pieces are mostly independen. Maybe we should share the GPG initialization somehow? Closes mystor#46 Closes mystor#73 Co-authored-by: Johannes Altmanninger <aclopte@gmail.com> Signed-off-by: Nicolas Schier <nicolas@fjasle.eu>
I have found that
git-revise
strips GPG signatures from commits.This seems better than leaving invalid signatures behind, but still seems unfortunate, especially given there is no visible warning.
Is it possible to sign revised commits as part of the revision process?
The text was updated successfully, but these errors were encountered: