Add file locking support (Git LFS)
@Leonardo-Rocha ci sta già lavorando.
Dal 7/10/2024.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 28/100
Direzione di ricerca
Non sono indicati file sorgente, test o punti di ingresso. Inizia leggendo la documentazione collegata sul locking di Git LFS e mappando l’integrazione VCS esistente di Godot; definisci il flusso supportato per i file bloccabili, gli indicatori di stato, il comportamento del salvataggio locale e la gestione dei pull prima dell’implementazione. Il lavoro è completo quando il comportamento di locking proposto funziona in questi casi ed è coperto da test.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
LFS introduces a very helpful concept called "file locking" (Docs here and here. It is akin to the "checkout" feature in Perforce (not to confuse with checkout in Git which doesn't mean the same thing at all). Basically, you can "lock" a file, so you only are able to push it in the remote repo.
As a professional game dev myself, it was used a lot in the previous studios I worked in. It can be annoying, but it's really helpful for editing for example game levels. I know tscn files are text-based and should be suitable for merging, but in practice, unresolvable dependy errors often arise, which brings development to a halt.
The integration should be similar to Unreal Engine's Perforce integration, which means :
- When saving a "lockable" filetype, a popup appears asking you tick the file(s) that you want to lock. You cannot save a file if you haven't locked it. If it is already locked, it shows you who locked it
- Locked files are shown in the file browser with a little icon. A separate panel could be used to list all locally locked files.
- If you want to save a locked file locally for testing purposes, you can do it. In Unreal it's called "save as writable". Such files should also be indicated in the file browser. Their changes will be overwritten when pulling from the remote repo if the file has been pushed.
- There could be a dialog asking you what to do with such files when pulling. Either overwrite, or move your changes to a duplicate that you can then manually merge or integrate in the project.
Tricky thing is, if an asset is referenced in a scene and that asset is changed, Unreal Engine will mark it as saved and will ask you to check it out. I do not know how Godot handles this.
I would very much like to bring this feature to the project with a pull request.
Mockups
Save Popup
File browser
Pull Popup
- Lingua principale
- C++
- Stelle
- 966
- Fork
- 100
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di godotengine/godot-git-plugin
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 47/100
godotengine/godot-git-plugin#338 ·
-
Error when switching branchApertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
godotengine/godot-git-plugin#337 · 2 commenti ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 66/100
godotengine/godot-git-plugin#335 ·
-
bug confirmed
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
godotengine/godot-git-plugin#334 · 3 commenti ·
-
Edit commit messageApertaenhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
godotengine/godot-git-plugin#332 ·
Tutte le issue di godotengine/godot-git-plugin
Issue simili
-
bug needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
microsoft/DirectXShaderCompiler#9155 ·
I maintainer di solito rispondono entro 2 giorni
-
Errors in 1.20 proseApertaCampaign DiD Campaign EI Campaign HttT Campaign TDG Campaign TSG Campaign WoF Enhancement Help Prose Stable 1.20
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
wesnoth/wesnoth#11749 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
trabucayre/openFPGALoader#767 ·
I maintainer di solito rispondono entro 1 giorno
-
agent:Windows bug in progress pri:medium sev:low testing windows
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 91/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
protocolbuffers/protobuf#31768 ·
I maintainer di solito rispondono entro 1 giorno