-
Notifications
You must be signed in to change notification settings - Fork 365
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
FR: Add a command for signing commits (when signing.sign-all = false
)
#4712
Comments
I am going to take a stab at this (thanks again, @martinvonz, for the recommendation). My usual progress disclaimer: family + full time job = 🐌 |
Maybe you can extract some bits from #3142 |
Oh, I wasn't aware that there is already an open PR for this. @julienvincent, do you want to continue working on #3142? |
@pylbrecht Please go ahead - I was planning on coming back to this at some point but I don't think I'm going to get a chance any time soon. |
Sorry, I had forgotten that we had this pending PR. Thanks for pointing it you, @yuja. |
Heartbeat: I am still digging around the linked issues and PRs to build up context. It looks like @julienvincent, I suppose you will not be able to work on #3141 any time soon either? |
I suppose you mean #3141? I might be able to pick it up again on a weekend, but I wouldn't be able to commit very hard to it right now. If you want to pick up work I don't have any particular attachments to it :) |
Oh yeah, I meant #3141 (fixed the typo in the original comment).
Well, my first steps would be to take your changes, understand them, and eventually add whatever seems to be missing to start working on #4747. While there is a great chance it will take me as long (or even longer) as you to finish that job, |
I don't know if I should make a different issue for this or just leave a comment here, but I think the nicest workflow (for me, anyway) would be to sign commits automatically on push. i.e. I don't necessarily want to unlock my GPG key every time jj makes a snapshot, but I probably do want to sign anything that I push to a remote without having to manually run a sign command. |
Agreed, batch signing should be a pre‐publish thing, like other clean‐up/linting hooks. (We were just discussing this on the Discord today.) |
As I am currently banging my head against the wall, I would like to reach out to any I am trying to port 9eaea83 to the current code base (the code seems to have changed quite a bit over the past months). We want to display a hint, if any commit signatures were dropped during a rebase. Ideally we would like to store the "this rebase dropped a signature" bit in a central place, from which we can retrieve it whenever we need it (e.g. in CLI commands to display a hint if we dropped any signatures). I started off by introducing Being new to the code base (and new to VCS internals in general), I am wondering if this is just cumbersome to solve and I have to bite the bullet, or if I am missing something that will make this simpler. Any thoughts or suggestions would be much appreciated! |
I was going to say that we can do that in However, as the comment there says, there may be millions of new commits added to the repo, so it can be very expensive to check all of them. It's probably better to go through However, we currently clear that map after using it. I don't think we should have to clear. I pushed main...push-rmnzxqzrwxwp to show what I mean, but I'm not at all confident that that's actually safe. I'll need to think more about it later. |
I quite like this approach as well, and I've created a PR adding a |
Is your feature request related to a problem? Please describe.
We have had support for automatically signing all commits since #3007.
Describe the solution you'd like
We want a
jj sign
command for whensigning.sign-all = false
.Describe alternatives you've considered
None.
Additional context
This ticket was extracted from #58 so we could close that one and not make people think that we don't have any support for signing at all.
The text was updated successfully, but these errors were encountered: