-
Small typo in $3918 section, word "haven".
-
Thanks, @johnveness. Fixed!
-
🌻 @daphipzgit clone git@invent.kde.org[…]only works when you have a SSH key set up with Invent. For this "beginner tutorial", I'd use https because this works regardless. Or does it automatically fall back to cloning over https if it fails for SSH? -
-
Thanks a lot!
I've added in teams/localization/issues#5 (comment 1668927) a few topic I think it's important to have:
- how to commit with the correct author -> this now allows correct attribution of people who will still continue to send patch by email because git is too complicated
- how to do a MR -> we should encourage people to do MR and not directly push on master. With gitlab, we also have some options to automatically merge the MR if the pipeline is successful (like in https://invent.kde.org/sysadmin/l10n-scripty/-/blob/master/update_translations?ref_type=heads#L660)
-
I have doubts about value of MRs for translation workflows. MRs make sense when someone reviews code before merge, but for most of teams workflow is "get an updated PO file in email, review it in Lokalize, push to repo", thus a MR doesn't add too much of a value. Never the less, expected workflow should be explained for those who know git – fork/no fork, master/other branches, or clearly stated that it is up to the team to decide.
-
🌻 @daphipzfor most of teams workflow is "get an updated PO file in email, review it in Lokalize, push to repo"
This may be true in your pre-git workflow, but I think MRs are a great place to review and discuss changes - better than email ;) In the German team, we still use Phabricator Review Requests to proofread translations (e.g. https://phabricator.kde.org/D31408).
If you want to keep the old way of doing things, there's nothing stopping you to commit directly to
masterwithout creating an MR first. But I think going forward, the documented, standard way of contributing translations should be via MRs. And every team should accept contributions made this way. -
In the last few days, I’ve had some experience reviewing MRs. You can add comments to individual lines (strings), for the translator to fix. I think that works better than sending comments by email.
And if no comments are necessary, you just have to click ‘Merge’ to apply everything. At least for me, that is much faster than the old way of handling contributions by email, where I had to save one or more attachments, perhaps unzip the files, move them to the correct directory, and then create a commit with a proper commit message.
But I agree with @marisn that the expected workflow should be documented somewhere. But probably not in this SVN-to-Git document. And we should leave it up to each team to decide which workflow they want to use. (Regarding use of
masteror branches in MRs, I think we should follow the general KDE Git method: https://community.kde.org/Infrastructure/GitLab#Submitting_a_merge_request).
-
-
@daphipz This is not strictly a beginner tutorial, this is a svn to git tutorial. All our svn users use ssh keys right now, so using ssh should not be a problem.
-
I don’t know if this is the right place. I made in Kdenlive an overview of how git is working for really beginners: documentation/docs-kdenlive-org!35 (diffs)
I think such generic git documentation should be centralized in one KDE place and not created again and again. Is there a plan how to organize this? Again, maybe this is the wrong place to ask this question.
-
Side note, I just noticed that to get the full history in git after the move, we need to do
git log --follow file.poYes, @@jjazeix, a plain
git log file.podoesn’t follow renames. Andgit log --follow file.podoesn’t always work, as Git doesn’t actually track renames/moves.It usually (renames/moves with no/few changed lines) work quite well. But when multiple files are copied/moved in the same commit and some of them are changed (e.g., branched/split), Git can get lost. But this is more of a general Git thing, so I don’t think it’s worth mentioning in this tutorial.
-
@emohr: I don’t know if this is the right place. I made in Kdenlive an overview of how git is working for really beginners: documentation/docs-kdenlive-org!35 (diffs)
I think such generic git documentation should be centralized in one KDE place and not created again and again. Is there a plan how to organize this?
Yes, I agree that Git documentation should ideally be centralised in one place. We’re discussing where it should live here: teams/localization/issues#5
But there may be a need for Git documentation at different levels (e.g., with a simple overview for beginners, like you have created). And some Git stuff that is important for general KDE developers, like
git cherry-pick, isn’t useful at all (and probably just confusing) for the translators.
Please sign in to comment