I am converting infrastructure in my workplace to use git instead of svn. General migration is going well, but we have a tool that I developed to migrate our SQL schemas.
To deal with individual schema change dependencies, the script migration used the subversion keyword substitution to put the last changed version number in the schema. With git, we cannot use the same idea, since the change history is non-linear (and we fully intend to use the branch functions).
Therefore, how do I get a topologically sorted list of commit identifiers from git? Given that someone has a better idea, how to deal with this problem?
Silas source
share