Closed JonathanJustavino closed 1 month ago
IN git you usually specify Name and Email, what kinda data you want to specify for Author? I suppose at least email... do you want to specify a name too?
For now an arbitrary string suffices, passed via query parameter "author". E.g. --author="John Doe <>"
Okay then what should I put as email? As long as I remember Git requires both, so I have to specify anyways both
@JonathanJustavino now it is like that: .setCommitter("databus", "databus@infai.org")
if we put only name, what should I put for email (I can try to put name, not sure if git will allow that, generally email is necessary)? if we put email, I can just duplicate it for name, here no problem other options?
The requirement is to leave the email empty, e.g. ?author="databus"&email="<>" or --user "John Doe < >", if that is possible.
To avoid confusion:
what we want:
why do we want it:
Git requires a username and email, but when doing git commit --user "John Doe <>"
it leaves the email empty, so I assume this is also possible in the scala API.
You could go with two query parameters ?author and ?email and set whatever is there. Should any of that fail, you could fall back to a default when not specified.
Okay, looks clear now. l will check it out
@holycrab13 @JonathanJustavino this should work now, please check
@holycrab13 @JonathanJustavino dev
branch!
Thank you, will have a look!
It should be possible to set an author when saving a document. The provided author should appear as the author in the git history.