1
Newbie Coding / Calling msysgit with parameters
« on: October 30, 2015, 09:59:26 am »
Still fiddling with my home project (which btw now really works, see pic), I would like to find a way renaming/moving project files out of a Python script in Windows. Right now I have to manually start msysgit.bat, change the project by typing ufoai, then type e.g. git mv /e/buildUFOAI/ufoai/base/maps/city_industry.map /e/buildUFOAI/ufoai/base/maps/industrial/ind_city_industry.map. Afterwards I have to alter this line for every single file, which is time consuming and boring.
I already managed to do something similar by calling the win cmd and using ufo2map for compiling maps and stuff. I have all the basics in place, but cannot find out how to do the last line. If I am not mistaken, msysgit.bat will not take nor pass any parameters, so how to?
I already managed to do something similar by calling the win cmd and using ufo2map for compiling maps and stuff. I have all the basics in place, but cannot find out how to do the last line. If I am not mistaken, msysgit.bat will not take nor pass any parameters, so how to?