You are here

git

Ivan Radovanovic's picture

Useful one-liner for building template git comment

Goes like this:
git status | grep modified: | awk 'BEGIN {FS="[ \t]+modified:[ \t]+";print "Change summary\n";} {print "* " $2 "\t\n";}'

Sample output:

Change summary

* include/Application.hpp

* include/fengine.hpp

* nginx.sh

* samples/if.ftx

* src/fEngine/compiling/Compiler.cpp

* src/fEngine/compiling/Compiling.cpp

* src/fEngine/f/Alt.cpp

* src/fEngine/f/BuiltInTag.cpp

* src/fEngine/f/Case.cpp

* src/fEngine/f/CodeGenerator.cpp

Subscribe to RSS - git