Files
philippe lhardy 89c3679be4 tools to easy merge
git status > status.txt
awk -f git_statut.awk status.txt >mergeit.sh

then use mergeit.sh on git repository ( with prior check ;-) ).
2025-07-30 08:50:28 +02:00

10 lines
220 B
Awk
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#! /bin/awk -f
function dirname(filename)
{
return ("$(dirname " filename ")")
}
/modifié :/{ print "mkdir -p changed/" dirname($2) "; mv " $2 " changed/" $2 "; git checkout " $2 "; meld " $2 " changed/" $2 }