Program used: bxcodec / go-clean-arch
You can get it with git log --pretty = oneline
.
Anyway with python
res = subprocess.check_output(["git", "-C", path_dir, "log", "--pretty=oneline"])
I want to get only the hash value of the commit (hash value + comment). I got only the first hash value separated by spaces and made it into a list.
I reset each commit and executed the command (is there a better way than reset ??).
for commit in log_list:
subprocess.call(["git", "-C", path_dir, "reset", "--hard", commit]) |
command(path_dir)
Use the path of the directory where the program is located when executing the command.
This is the most difficult. There is a very useful package called parser that will get the package you are importing in the file. This can be grouped from file to package.
--By file-> By package The parser also gets the package name of the file, but it's indistinguishable if the same package name is in another directory. I saved the directory, but there seems to be an easier way --Distinguishing external packages I wanted to target only internal packages (made by myself), how can I distinguish them? ?? I made it like "external if there is github", but it seems that it is not a very good method.
Use graphviz.
dot -T gif sample.dot -o sample.gif
When making an animation, if the size of each file is different, the large size will be cut off.
mogrify -resize (width)x(height)! *.gif
Choose a size that feels good.
Use ImageMagick.
convert -delay 5 -loop 0 *.gif animation.gif
-Execute the git command from outside the Git directory -How to execute a command using subprocess in Python
The display position of the graph becomes different for each commit, and it is difficult to see when animating. I want to arrange it somehow.