tech:utiliser-git-pour-vos-logos-en-svg
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:utiliser-git-pour-vos-logos-en-svg [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:utiliser-git-pour-vos-logos-en-svg [2025/10/09 23:38] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | |||
| + | # Utiliser Git pour vos logos en SVG | ||
| + | |||
| + | |||
| + | Voir http:// | ||
| + | |||
| + | Faire du diffing graphique (oui ! pas en texte) avec Git sur des images vectorielle en SVG | ||
| + | |||
| + | '' | ||
| + | |||
| + | ~~~python | ||
| + | # | ||
| + | import sys, os | ||
| + | |||
| + | inkscape = " | ||
| + | |||
| + | local = sys.argv[1] | ||
| + | remote = sys.argv[2] | ||
| + | tempdir = "/ | ||
| + | localpng = tempdir+" | ||
| + | remotepng = tempdir+" | ||
| + | | ||
| + | if(not (remote.endswith(" | ||
| + | os.system(" | ||
| + | else: | ||
| + | os.system(inkscape+" | ||
| + | os.system(inkscape+" | ||
| + | os.system(" | ||
| + | os.remove(localpng) | ||
| + | os.remove(remotepng) | ||
| + | ~~~ | ||
| + | |||
| + | Ajoutez dans votre .gitconfig (adapter le chemin) | ||
| + | |||
| + | |||
| + | '' | ||
| + | |||
| + | ~~~ini | ||
| + | [difftool " | ||
| + | cmd = "/ | ||
| + | ~~~ | ||
| + | |||
| + | Puis par exemple | ||
| + | |||
| + | ~~~bash | ||
| + | git difftool -y -t compare | ||
| + | ~~~ | ||
| + | |||
| + | |||
