#!/bin/sh # format code astyle -A1 -xV -r "*.cpp" "*.h" #-n [exclude] # add file to cache while read -r file; do file=${file:1} git add $file; done