Better diffs (word diff, ignore whitespace)
Në shqip: Krahasime më të mira
ShpjegimiSQ
git diff --word-diff tregon ndryshimet fjalë pas fjale (ideale për tekste), -w injoron hapësirat, --color-moved dallon kodin e zhvendosur nga ai i ri, dhe diff.algorithm=histogram jep rezultate më të qarta.
EnglishEN
git diff --word-diff shows changes word by word (ideal for prose), -w ignores whitespace, --color-moved distinguishes moved code from new code, and diff.algorithm=histogram gives clearer results.
Si ta mendosh
Si një korrektor që nënvizon vetëm fjalët e ndryshuara, jo gjithë rreshtin.
Lexoje në anglisht
Like a proofreader underlining only the changed words, not the whole line.
Shembull kodibash
git diff --word-diff
git diff -w --color-moved