Raw
1 2 for it
2 3 do
3 4 path=$(expr "$it" : ([^:]*)) &&
4 5 git update-index --add "$path" || exit
5 6 done