-
Notifications
You must be signed in to change notification settings - Fork 353
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
Surprising author of the first working copy #4042
Comments
I presume it's the |
I think the issue is that the commit is created by You can run In principle, we could have We could also potentially add |
Another option might be to have |
Yes, please (and the committer too). This trips me up whenever I set a per‐repo email address, which is fairly common and can only be done after cloning.
|
If it's a simple fix, I'd like to take a stab at this |
I think it shouldn’t be too hard; you could look at #3906 for inspiration. |
It wouldn't be hard, but might be a bit wonky. If you ran Maybe we can add warning or hint if the author of the current working-copy commit doesn't match (and if description is empty)? |
One issue with this approach is that it would only reset when the user actually changes something. If the user immediately looks at the log before changing anything in the working copy (which seems fairly likely if they just changed the config and want to see whether it worked), it would still show the old author and they might be confused. So maybe the warning would be less likely to cause confusion. |
Just throwing it out there, what about |
Good point. I'm not sure this is a fatal problem to the idea of changing the behavior of empty commits to address the problem of the issue (this is what I meant by referencing #3906), but it's certainly a downside.
Sorry to add to the confusion, but I don't like this idea as is. I wonder if it could be modified to something workable, though. The problems are: 1) One possibility that comes to my mind would be for |
See also #3828 for the |
SGTM, I'll try going in that direction. |
Description
I am writing a codelab-like tutorial for
jj
on the basis of Steve's tutorial. For that I tried to make up a[email protected]
author, to avoid using personal data. However, it seems that the first working copy commit is created with global metadata, and that changing the author before doing anything does not fix that.Steps to Reproduce the Problem
Expected Behavior
Actual Behavior
(The username is an email address which is not supposed to be used for this repo. Subsequent commits, however, do use
[email protected]
mail address.)Specifications
The text was updated successfully, but these errors were encountered: