[IMP] todo: git patch
This commit is contained in:
parent
664ba95a54
commit
340a55e685
2 changed files with 8 additions and 0 deletions
|
|
@ -56,6 +56,10 @@
|
||||||
{
|
{
|
||||||
"prompt_description_key": "Configure git local editor to vim",
|
"prompt_description_key": "Configure git local editor to vim",
|
||||||
"bash_command": "git config --global core.editor \"vim\""
|
"bash_command": "git config --global core.editor \"vim\""
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"prompt_description_key": "Generate git patch to /tmp",
|
||||||
|
"bash_command": "PATCH=\"/tmp/patch_$(date +%Y%m%d_%H%M%S).patch\"; git -C \"$(pwd)\" diff HEAD > \"$PATCH\" && printf \"\\n✓ Patch created: %s\\n\\n=== Guide to apply the patch ===\\n Check compatibility : git apply --check %s\\n Apply (git) : git apply %s\\n Apply (patch) : patch -p1 < %s\\n Revert (git) : git apply -R %s\\n\" \"$PATCH\" \"$PATCH\" \"$PATCH\" \"$PATCH\" \"$PATCH\""
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -617,6 +617,10 @@ TRANSLATIONS = {
|
||||||
"fr": "Configuration git local par vim",
|
"fr": "Configuration git local par vim",
|
||||||
"en": "Configure git local editor to vim",
|
"en": "Configure git local editor to vim",
|
||||||
},
|
},
|
||||||
|
"Generate git patch to /tmp": {
|
||||||
|
"fr": "Générer une patch git dans /tmp",
|
||||||
|
"en": "Generate git patch to /tmp",
|
||||||
|
},
|
||||||
"Git editor configured to vim successfully!": {
|
"Git editor configured to vim successfully!": {
|
||||||
"fr": "Éditeur git configuré sur vim avec succès!",
|
"fr": "Éditeur git configuré sur vim avec succès!",
|
||||||
"en": "Git editor configured to vim successfully!",
|
"en": "Git editor configured to vim successfully!",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue