Add support for moved file recognition

Aperta
#338 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
47/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, git, godot
Ambito
devtools

Direzione di ricerca

Start by locating how the plugin reads Git status and maps added and deleted files into Godot's version control UI. Compare that path with the Git CLI's rename detection for identical or similar contents, then identify where a moved file could be represented as one change. Done means moved files are recognized and displayed as a single change with an appropriate status indicator.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement
Godot version

4.7 stable

Godot Git Plugin version

Unsure, can't find it anywhere in the plugin files in the project

System information

Linux Fedora 44 KDE Plasma Edition Wayland

Problem statement

I have reorganized my project structure. The git CLI command recognized the files I've moved and so sees them as renamed, treating a "deleted" file and "new" file somewhere else with the same contents correctly as a move of a single file. The Godot Git plugin does not and has a deleted file change and an added file change for every single affected file.

Proposed solution

The Godot Git plugin should recognize moved files correctly based on same or similar file contents in a deletion and added context.

It could then mark these occurrences in the UI correctly as a single change instead of two for each and maybe use another color / icon just like it currently has for different actions (new file green with a checkmark, deleted red with an X, etc.).

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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di godotengine/godot-git-plugin

Tutte le issue di godotengine/godot-git-plugin

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.