{"id":311289,"date":"2020-10-11T15:00:45","date_gmt":"2020-10-11T15:00:45","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=311289"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=311289","title":{"rendered":"\u041d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043b\u0438\u044f\u043d\u0438\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e GitPython"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/522942\/\">\n<h3>\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  \u0414\u0430\u043d\u043e: \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 OpenWRT (\u0430 \u043e\u043d \u2014 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 BuildRoot) \u0441 \u043e\u0434\u043d\u0438\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u043c, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c \u043a\u0430\u043a feed. \u0417\u0430\u0434\u0430\u0447\u0430: \u0441\u043b\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c.<\/p>\n<h3>\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f<\/h3>\n<p>  \u041c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0438, \u043e\u0434\u043d\u0430\u0436\u0434\u044b, \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u0438 \u0434\u0430\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043c\u0443\u0447\u0430\u0442\u044c\u0441\u044f \u0441 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c SDK, toolchain \u0438 \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438, \u0440\u0435\u0448\u0438\u043b\u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 github \u0432 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f:<\/p>\n<pre><code class=\"plaintext\">\/target   \/\/ \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u044f\u0434\u0435\u0440 \/toolchain   \/\/ \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 gcc, musl \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0431\u043e\u0440\u043a\u0438  \/feeds   \/\/ \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \/package   \/\/ \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 ... <\/code><\/pre>\n<p>  \u0411\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439, \u0447\u0442\u043e\u0431 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043b. \u041c\u044b \u0432\u0441\u0451 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0438, \u0432\u044b\u043b\u043e\u0436\u0438\u043b\u0438 \u043d\u0430 github \u0438 \u0441\u0442\u0430\u043b\u043e \u0445\u043e\u0440\u043e\u0448\u043e. <\/p>\n<p>  \u041c\u043d\u043e\u0433\u043e \u0432\u043e\u0434\u044b \u0443\u0442\u0435\u043a\u043b\u043e \u0441 \u0442\u0435\u0445 \u043f\u043e\u0440\u2026<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041a\u043b\u0438\u0435\u043d\u0442\u0430 \u0442\u043e\u0433\u043e \u0434\u0430\u0432\u043d\u043e \u0443\u0436 \u043d\u0435\u0442, \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 github \u0443\u0431\u0440\u0430\u043b\u0438, \u0438 \u0441\u0430\u043c\u0430 \u0438\u0434\u0435\u044f \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043f\u0440\u043e\u0442\u0443\u0445\u043b\u0430. \u041e\u0434\u043d\u0430\u043a\u043e \u0436\u0435, \u0434\u0432\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c. \u0418 \u0432\u0441\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b\/\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0442\u0430\u043a \u0438\u043b\u0438 \u0438\u043d\u0430\u0447\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u0441 git, \u0432\u044b\u043d\u0443\u0436\u0434\u0435\u043d\u043d\u043e \u0443\u0441\u043b\u043e\u0436\u043d\u044f\u044e\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0442\u0430\u043a\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439. \u041f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, \u044d\u0442\u043e \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u043e\u043b\u0433. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0447\u0442\u043e\u0431\u044b \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0435\u043b\u0438\u0437\u043e\u0432, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 (primary) \u0437\u0430\u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u0438\u043a, secondary.version, \u0441 \u0445\u044d\u0448\u0435\u043c \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u043a\u0440\u0438\u043f\u0442, \u0438 \u0435\u043c\u0443 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e. \u041d\u043e, \u0442\u0430\u043a\u0438\u0445 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u0441 \u0434\u0435\u0441\u044f\u0442\u043e\u043a, \u0438 \u0432\u0441\u0435 \u043e\u043d\u0438 \u0441\u043b\u043e\u0436\u043d\u0435\u0435 \u0447\u0435\u043c \u043c\u043e\u0433\u043b\u0438 \u0431\u044b \u0431\u044b\u0442\u044c. \u0412 \u043e\u0431\u0449\u0435\u043c, \u044f \u043f\u0440\u0438\u043d\u044f\u043b \u0432\u043e\u043b\u0435\u0432\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432\u043b\u0438\u0442\u044c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 secondary \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 primary. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0431\u044b\u043b\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435 \u2014 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0440\u0435\u043b\u0438\u0437\u043e\u0432.<\/p>\n<p>  \u0420\u0430\u0437 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e \u0442\u0430\u043a\u043e\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u0442\u043e \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0441\u043b\u0438\u044f\u043d\u0438\u044f, \u043a\u0430\u043a \u0442\u043e, \u0437\u0430\u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442\u044c \u0432\u0441\u0451 \u0438\u0437 secondary \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u043f\u043e\u0442\u043e\u043c, \u0441\u0432\u0435\u0440\u0445\u0443, \u0441\u0434\u0435\u043b\u0430\u0442\u044c merge-\u043a\u043e\u043c\u043c\u0438\u0442 \u0434\u0432\u0443\u0445 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u0434\u0435\u0440\u0435\u0432\u044c\u0435\u0432, \u043d\u0435 \u043f\u043e\u0434\u043e\u0439\u0434\u0443\u0442. \u041f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043a\u0430\u043f\u043e\u0442 \u0438 \u0438\u0441\u043f\u0430\u0447\u043a\u0430\u0442\u044c \u0440\u0443\u043a\u0438. <\/p>\n<h3>\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 git<\/h3>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u0447\u0442\u043e \u0438\u0437 \u0441\u0435\u0431\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 git? \u042d\u0442\u043e \u0431\u0430\u0437\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432. \u041e\u0431\u044a\u0435\u043a\u0442\u044b \u0431\u044b\u0432\u0430\u044e\u0442 \u0442\u0440\u0451\u0445 \u0442\u0438\u043f\u043e\u0432: \u0431\u043b\u043e\u0431\u044b (blob), \u0434\u0435\u0440\u0435\u0432\u044c\u044f (tree) \u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u044b (commit). \u0412\u0441\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0430\u0434\u0440\u0435\u0441\u0443\u044e\u0442\u0441\u044f sha1 \u0445\u044d\u0448\u0435\u043c \u0441\u0432\u043e\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e. \u0411\u043b\u043e\u0431 \u2014 \u044d\u0442\u043e, \u0442\u0443\u043f\u043e, \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0435\u0437 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432. \u0414\u0435\u0440\u0435\u0432\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0434\u0435\u0440\u0435\u0432\u044c\u044f \u0438 \u0431\u043b\u043e\u0431\u044b \u0432\u0438\u0434\u0430 \u201c&lt;\u043f\u0440\u0430\u0432\u0430&gt; &lt;\u0442\u0438\u043f&gt; &lt;\u0445\u044d\u0448&gt; &lt;\u0438\u043c\u044f&gt;\u201d (\u0433\u0434\u0435 &lt;\u0442\u0438\u043f&gt; \u044d\u0442\u043e, \u043b\u0438\u0431\u043e blob, \u043b\u0438\u0431\u043e tree). \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u0435\u0440\u0435\u0432\u043e, \u044d\u0442\u043e \u043a\u0430\u043a \u0431\u044b \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0430 \u0431\u043b\u043e\u0431 \u2014 \u044d\u0442\u043e \u043a\u0430\u043a \u0431\u044b \u0444\u0430\u0439\u043b. \u041a\u043e\u043c\u043c\u0438\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043c\u044f \u0430\u0432\u0442\u043e\u0440\u0430 \u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0435\u0440\u0430, \u0434\u0430\u0442\u0443 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f, \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439, \u0445\u044d\u0448 \u0434\u0435\u0440\u0435\u0432\u0430 \u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e (\u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u043d\u0430 \u0438\u043b\u0438 \u0434\u0432\u0435) \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b. \u0412\u043e\u0442 \u044d\u0442\u0438 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b, \u043a\u0430\u043a \u0440\u0430\u0437 \u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u044e\u0442 \u0431\u0430\u0437\u0443 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432 \u0430\u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0440\u0433\u0440\u0430\u0444 (\u0441\u0440\u0435\u0434\u0438 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u0446\u0435\u0432, \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d, \u043a\u0430\u043a DAG). \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0447\u0438\u0442\u0430\u0439\u0442\u0435 <a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Internals-Git-Objects\">\u0442\u0443\u0442<\/a>:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/git-scm.com\/book\/en\/v2\/images\/data-model-3.png\" alt=\"\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0432\u044f\u0437\u0435\u0439 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 git\"\/><br \/>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u043d\u0430\u0448\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043b\u0430\u0441\u044c \u0432 \u0437\u0430\u0434\u0430\u0447\u0443 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043e\u0440\u0433\u0440\u0430\u0444\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0435\u0433\u043e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0441\u0442\u0430\u0440\u043e\u0433\u043e. \u041d\u043e \u0441 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0444\u0430\u0439\u043b\u0430 secondary.version \u043d\u0430 \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0438\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/hh\/gj\/6y\/hhgj6y-s_oufyleq5izrdkntonk.png\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0446\u0435\u0441\u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0443 \u043d\u0430\u0441 \u0434\u0430\u043b\u0451\u043a \u043e\u0442 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e gitflow. \u041c\u044b \u0432\u0441\u0451 \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u043c \u0432 \u043c\u0430\u0441\u0442\u0435\u0440, \u0441\u0442\u0430\u0440\u0430\u044f\u0441\u044c \u0435\u0433\u043e, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c, \u043d\u0435 \u0441\u043b\u043e\u043c\u0430\u0442\u044c. \u041e\u0442\u0442\u0443\u0434\u0430 \u0436\u0435 \u0434\u0435\u043b\u0430\u0435\u043c \u0431\u0438\u043b\u0434\u044b. \u041f\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u0432\u0435\u0442\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0442\u043e\u043c \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0441\u043b\u0438\u0432\u0430\u0435\u043c \u0432 \u043c\u0430\u0441\u0442\u0435\u0440. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0433\u0440\u0430\u0444 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u0433\u043e\u043b\u044b\u0439 \u0441\u0442\u0432\u043e\u043b \u0441\u0435\u043a\u0432\u043e\u0439\u0438 \u043e\u043f\u043b\u0435\u0442\u0451\u043d\u043d\u044b\u0439 \u043b\u0438\u0430\u043d\u0430\u043c\u0438.<\/p>\n<h3>\u0410\u043d\u0430\u043b\u0438\u0437<\/h3>\n<p>  \u0417\u0430\u0434\u0430\u0447\u0430 \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0440\u0430\u0437\u0431\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0434\u0432\u0430 \u044d\u0442\u0430\u043f\u0430: \u0430\u043d\u0430\u043b\u0438\u0437 \u0438 \u0441\u0438\u043d\u0442\u0435\u0437. \u0422\u0430\u043a \u043a\u0430\u043a \u0434\u043b\u044f \u0441\u0438\u043d\u0442\u0435\u0437\u0430 \u043d\u0430\u0434\u043e, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043f\u0440\u043e\u0431\u0435\u0436\u0430\u0442\u044c \u043e\u0442 \u0441\u0430\u043c\u043e\u0433\u043e \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f secondary \u0434\u043e \u0432\u0441\u0435\u0445 \u0442\u044d\u0433\u043e\u0432 \u0438 \u0432\u0435\u0442\u043e\u043a, \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0438\u0437 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0442\u043e \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043c\u0435\u0441\u0442\u0430 \u043a\u0443\u0434\u0430 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0442\u044c secondary-\u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0438 \u0441\u0430\u043c\u0438 \u044d\u0442\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u044b. \u0417\u043d\u0430\u0447\u0438\u0442, \u043d\u0430\u0434\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0440\u0435\u0434\u0443\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0433\u0440\u0430\u0444, \u0433\u0434\u0435 \u0443\u0437\u043b\u0430\u043c\u0438 \u0431\u0443\u0434\u0443\u0442 \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0433\u0440\u0430\u0444\u0430 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0435 \u0444\u0430\u0439\u043b secondary.version (\u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b). \u041f\u0440\u0438\u0447\u0451\u043c, \u0435\u0441\u043b\u0438 \u0443\u0437\u043b\u044b \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0433\u043e \u0433\u0438\u0442\u0430 \u0441\u0441\u044b\u043b\u0430\u044e\u0442\u0441\u044f \u043d\u0430 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439, \u0442\u043e \u0432 \u043d\u043e\u0432\u043e\u043c \u0433\u0440\u0430\u0444\u0435 \u043d\u0443\u0436\u043d\u044b \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432. \u0417\u0430\u0432\u043e\u0436\u0443 \u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0440\u0442\u0435\u0436:<\/p>\n<pre><code class=\"python\">node = namedtuple(\u2018Node\u2019, [\u2018primary_commit\u2019, \u2018secondary_commit\u2019, \u2018children\u2019])<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430\u044f \u043e\u0433\u043e\u0432\u043e\u0440\u043a\u0430<\/b>                         <\/p>\n<div class=\"spoiler_text\">\u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u0432 \u0441\u0442\u0430\u0442\u044c\u0435, \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439, \u043c\u0435\u043b\u043a\u0438\u0435 \u0434\u0435\u0442\u0430\u043b\u0438 \u0438 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043e\u043f\u0443\u0449\u0435\u043d\u044b.  <\/div>\n<\/p><\/div>\n<p>  \u041a\u043b\u0430\u0434\u0443 \u0435\u0433\u043e \u0432 \u0441\u043b\u043e\u0432\u0430\u0440\u044c:<\/p>\n<pre><code class=\"python\">master_tip = repo.commit(\u2018master\u2019) commit_map = {master_tip : node(master_tip, get_sec_commit(master_tip), [])}<\/code><\/pre>\n<p>  \u0422\u0443\u0434\u0430 \u0436\u0435 \u043a\u043b\u0430\u0434\u0443 \u0432\u0441\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0449\u0438\u0435 secondary.version:<\/p>\n<pre><code class=\"python\">for c in repo.iter_commits(all=True, path=\u2019secondary.verion\u2019) :     commit_map[c] = node(c, get_sec_commit(c), [])<\/code><\/pre>\n<p>  \u0418 \u0441\u0442\u0440\u043e\u044e \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u044b\u0439 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c:<\/p>\n<pre><code class=\"python\">def build_dag(commit, commit_map, node):     for p in commit.parents :         if p in commit_map :            if node not in commit_map[p].children :                commit_map[p].children.append(node)            build_dag(p, commit_map, commit_map[p])         else :            build_dag(p, commit_map, node)<\/code><\/pre>\n<p>  \u0422\u043e \u0435\u0441\u0442\u044c, \u043a\u0430\u043a \u0431\u044b \u043f\u0440\u043e\u0442\u044f\u0433\u0438\u0432\u0430\u044e \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0443\u0437\u043b\u044b \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u0435, \u0438 \u043f\u043e\u0434\u0446\u0435\u043f\u043b\u044f\u044e \u043a \u043d\u043e\u0432\u044b\u043c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\u043c.<\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u044e, \u0438\u2026 RuntimeError max recursion depth exceeded<\/p>\n<p>  \u041a\u0430\u043a \u0436\u0435 \u0442\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c? \u041d\u0435\u0443\u0436\u0435\u043b\u0438, \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432? <b>git log<\/b> \u0438 <b>wc<\/b> \u0437\u043d\u0430\u044e\u0442 \u043e\u0442\u0432\u0435\u0442. \u0412\u0441\u0435\u0433\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0441 \u043c\u043e\u043c\u0435\u043d\u0442\u0430 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043e\u043a\u043e\u043b\u043e 20000, \u0430 \u0437\u0430\u0442\u0440\u0430\u0433\u0438\u0432\u0430\u044e\u0449\u0438\u0445 secondary.version \u2014 \u043f\u043e\u0447\u0442\u0438 700. \u0420\u0435\u0446\u0435\u043f\u0442 \u0438\u0437\u0432\u0435\u0441\u0442\u0435\u043d, \u043d\u0443\u0436\u043d\u0430 \u043d\u0435\u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0432\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f.<\/p>\n<pre><code class=\"python\">def build_dag(master_tip, commit_map, master_node):     to_process = [(master_tip, master_node)]     while len(to_process) &gt; 0:         c, node = to_process.pop()         for p in c.parents :             if p in commit_map :                 if node not in commit_map[p].children :                     commit_map[p].children.append(node)                 to_process.append(p, commit_map[p])             else :                 to_process.append(p, node)<\/code><\/pre>\n<p>  (\u0410 \u0432\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u0438, \u0447\u0442\u043e \u0432\u0441\u0435 \u044d\u0442\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u043d\u0443\u0436\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e\u0431 \u0438\u043d\u0442\u0435\u0440\u0432\u044c\u044e \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c!)<\/p>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u044e, \u0438\u2026 \u043e\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041c\u0438\u043d\u0443\u0442\u0443, \u043f\u044f\u0442\u044c, \u0434\u0432\u0430\u0434\u0446\u0430\u0442\u044c\u2026 \u041d\u0435\u0442, \u0442\u0430\u043a \u0434\u043e\u043b\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f. \u041e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e. \u0421\u0443\u0434\u044f \u043f\u043e \u0432\u0441\u0435\u043c\u0443 \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442 \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0443\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u043c\u043d\u043e\u0433\u0443 \u0440\u0430\u0437. \u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0436\u0435 \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 \u0440\u0430\u0437\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u0439? \u0412\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0432 \u0434\u0435\u0440\u0435\u0432\u0435 40 \u0440\u0430\u0437\u0432\u0435\u0442\u0432\u043b\u0435\u043d\u0438\u0439 \u0438, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, <math>$inline$2^{40}$inline$<\/math> \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0443\u0442\u0435\u0439 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442 \u043c\u0430\u0441\u0442\u0435\u0440\u0430. \u0418 \u043a \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0432\u0435\u0434\u0443\u0442 \u043c\u043d\u043e\u0433\u0438\u0435 \u043f\u0443\u0442\u0438. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0442\u044b\u0441\u044f\u0447\u0438 \u043b\u0435\u0442 \u0443 \u043c\u0435\u043d\u044f \u0432 \u0437\u0430\u043f\u0430\u0441\u0435 \u043d\u0435\u0442, \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0441\u044f \u0440\u043e\u0432\u043d\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0437. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e, \u0433\u0434\u0435 \u043e\u0442\u043c\u0435\u0447\u0430\u044e \u043a\u0430\u0436\u0434\u044b\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u043c\u043c\u0438\u0442. \u041d\u043e \u0442\u0443\u0442 \u0435\u0441\u0442\u044c \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430: \u043f\u0440\u0438 \u0442\u0430\u043a\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u0447\u0430\u0441\u0442\u044c \u0441\u0432\u044f\u0437\u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u0443\u0442\u0435\u0440\u044f\u043d\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0430\u043c\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u043e\u0439\u0434\u0451\u0442 \u0434\u0430\u043b\u044c\u0448\u0435. \u0427\u0442\u043e\u0431\u044b \u043e\u0431\u043e\u0439\u0442\u0438 \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443, \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043c\u0435\u043d\u044f\u044e \u043d\u0430 \u0441\u043b\u043e\u0432\u0430\u0440\u044c, \u0433\u0434\u0435 \u043a\u043b\u044e\u0447\u0430\u043c\u0438 \u0431\u0443\u0434\u0443\u0442 \u043a\u043e\u043c\u043c\u0438\u0442\u044b, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u2014 \u0441\u043f\u0438\u0441\u043a\u0438 \u0434\u043e\u0441\u0442\u0438\u0436\u0438\u043c\u044b\u0445 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432:<\/p>\n<pre><code class=\"python\">def build_dag(master_tip, commit_map, master_node):     processed_commits = {}     to_process = [(master_tip, master_node, [])]     while len(to_process) &gt; 0:         c, node, path = to_process.pop()         p_node = commit_map.get(c)         if p_node :             commit_map[p].children.append(p_node)             for path_c in path :                 if all(p_node.trunk_commit != nc.trunk_commit for nc                             in processed_cmmts[path_c]) :                      processed_cmmts[path_c].append(p_node)                 path = []                 node = p_node         processed_cmmts[c] = []                 for p in c.parents :             if p != root_commit and and p not in processed_cmmts :                 newpath = path.copy()                 newpath.append(c)                 to_process.append((p, node, newpath,))             else :                 p_node = commit_map.get(p)                 if p_node is None :                     p_nodes = processed_cmmts.get(p, [])                  else :                     p_nodes = [p_node]             for pn in p_nodes :                 node.children.append(pn)                 if all(pn.trunk_commit != nc.trunk_commit for nc                             in processed_cmmts[c]) :                     processed_cmmts[c].append(pn)                 for path_c in path :                     if all(pn.trunk_commit != nc.trunk_commit                                for nc in processed_cmmts[path_c]) :                         processed_cmmts[path_c].append(pn)<\/code><\/pre>\n<p>  \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u044d\u0442\u043e\u0433\u043e \u0431\u0435\u0441\u0445\u0438\u0442\u0440\u043e\u0441\u0442\u043d\u043e\u0433\u043e \u043e\u0431\u043c\u0435\u043d\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0433\u0440\u0430\u0444 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u0437\u0430 30 \u0441\u0435\u043a.<\/p>\n<h3>\u0421\u0438\u043d\u0442\u0435\u0437<\/h3>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c commit_map \u0441 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c\u0438 \u0443\u0437\u043b\u0430\u043c\u0438 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u0433\u0440\u0430\u0444 \u0447\u0435\u0440\u0435\u0437 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u043e\u0442\u043e\u043c\u043a\u043e\u0432. \u0414\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430, \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044e \u0435\u0433\u043e \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u0430\u0440 <i>(\u043f\u0440\u0435\u0434\u043e\u043a, \u043f\u043e\u0442\u043e\u043c\u043e\u043a)<\/i>. \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e, \u0447\u0442\u043e \u0432\u0441\u0435 \u043f\u0430\u0440\u044b, \u0433\u0434\u0435 \u0443\u0437\u0435\u043b \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u0442\u043e\u043c\u043a\u0430, \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u044b \u0440\u0430\u043d\u044c\u0448\u0435 \u0447\u0435\u043c \u043b\u044e\u0431\u0430\u044f \u043f\u0430\u0440\u0430, \u0433\u0434\u0435 \u0443\u0437\u0435\u043b \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0435\u0434\u043a\u0430. \u0414\u0430\u043b\u044c\u0448\u0435 \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0439\u0442\u0438 \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0441\u043f\u0438\u0441\u043a\u0443 \u0438 \u0437\u0430\u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442\u044c \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0430 \u043f\u043e\u0442\u043e\u043c \u0438\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e. \u0422\u0443\u0442 \u043d\u0430\u0434\u043e \u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u043a\u043e\u043c\u043c\u0438\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0434\u0435\u0440\u0435\u0432\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0422\u0430\u043a \u043a\u0430\u043a, \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0434\u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 <i>package\/<\/i>, \u0442\u043e \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u043e\u0432\u044b\u0435 \u0434\u0435\u0440\u0435\u0432\u044c\u044f. \u0412 \u043f\u0435\u0440\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0438\u0441\u0430\u043b \u0431\u043b\u043e\u0431\u044b \u0432 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0440\u043e\u0441\u0438\u043b \u0433\u0438\u0442 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438. \u041e\u0434\u043d\u0430\u043a\u043e, \u0442\u0430\u043a\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c. \u041a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u0432\u0441\u0451 \u0435\u0449\u0451 20000, \u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442\u044c \u0435\u0449\u0451 \u0440\u0430\u0437. \u0422\u0430\u043a \u0447\u0442\u043e, \u0442\u0443\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u043c\u0435\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435. \u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 <b>GitPython<\/b> \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043c\u0435\u043d\u044f \u043a \u043a\u043b\u0430\u0441\u0441\u0443 <b>gitdb.LooseObjectDB<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u044f\u043c\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c git-\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f. \u0421 \u043d\u0438\u043c, \u0431\u043b\u043e\u0431\u044b \u0438 \u0434\u0435\u0440\u0435\u0432\u044c\u044f (\u0438 \u043b\u044e\u0431\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u0442\u043e\u0436\u0435) \u0438\u0437 \u043e\u0434\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0432 \u0434\u0440\u0443\u0433\u043e\u0439. \u0417\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e\u043c \u0431\u0430\u0437\u044b \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 git \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u0430\u0434\u0440\u0435\u0441\u043e\u043c \u043b\u044e\u0431\u043e\u0433\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u0430, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0445\u044d\u0448 \u043e\u0442 \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u043e \u044d\u0442\u043e\u043c\u0443, \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439 \u0431\u043b\u043e\u0431 \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043e\u0434\u0438\u043d \u0438 \u0442\u043e\u0442 \u0436\u0435 \u0430\u0434\u0440\u0435\u0441, \u0434\u0430\u0436\u0435 \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445.<\/p>\n<pre><code class=\"python\">secondary_paths = set() ldb = gitdb.LooseObjectDB(os.path.join(repo.git_dir, 'objects')) while len(pc_pairs) &gt; 0:     parent, child = pc_pairs.pop()     for c in all_but_last(repo.iter_commits('{}..{}'.format(                       parent.trunk_commit, child.trunk_commit), reverse = True)) :         newparents = [new_commits.get(p, p) for p in c.parents]         new_commits[c] = commit_primary(repo, newparents, c, secondary_paths)     newparents = [new_commits.get(p, p) for p in child.trunk_commit.parents]     c = secrepo.commit(child.src_commit)     sc_message = 'secondary commits {}..{} &lt;devonly&gt;'.format(            parent.src_commit, child.src_commit)     scm_details = '\\n'.join(        '{}: {}'.format(i.hexsha[:8], textwrap.shorten(i.message, width = 70))        for i in secrepo.iter_commits(                '{}..{}'.format(parent.src_commit, child.src_commit), reverse = True))     sc_message = '\\n\\n'.join((sc_message, scm_details))     new_commits[child.trunk_commit] = commit_secondary(           repo, newparents, c, secondary_paths, ldb, sc_message)<\/code><\/pre>\n<p>  \u0421\u0430\u043c\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0430:<\/p>\n<pre><code class=\"python\">    def commit_primary(repo, parents, c, secondary_paths) :        head_tree = parents[0].tree        repo.index.reset(parents[0])        repo.git.read_tree(c.tree)        for p in secondary_paths :            # primary commits don't change secondary paths, so we'll just read secondary            # paths into index            tree = head_tree.join(p)            repo.git.read_tree('--prefix', p, tree)        return repo.index.commit(c.message, author=c.author, committer=c.committer                          , parent_commits = parents                          , author_date=git_author_date(c)                          , commit_date=git_commit_date(c))      def commit_secondary(repo, parents, sec_commit, sec_paths, ldb, message):        repo.index.reset(parents[0])        if len(sec_paths) &gt; 0 :            repo.index.remove(sec_paths, r=True, force = True, ignore_unmatch = True)        for o in sec_commit.tree.traverse() :            if not ldb.has_object(o.binsha) :                ldb.store(gitdb.IStream(o.type, o.size, o.data_stream))            if o.path.find(os.sep) &lt; 0 and o.type == 'tree':  # a package root                repo.git.read_tree('--prefix', path, tree)                sec_paths.add(p)                return repo.index.commit(message, author=sec_commit.author                                 , committer=sec_commit.committer                                 , parent_commits=parents                                 , author_date=git_author_date(sec_commit)                                 , commit_date=git_commit_date(sec_commit))  <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u0438\u0437 secondary \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0441\u043a\u043e\u043f\u043e\u043c. \u0421\u043d\u0430\u0447\u0430\u043b\u0430, \u044f \u0441\u0434\u0435\u043b\u0430\u043b \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u0438\u043d\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b, \u043d\u043e (\u0432\u043d\u0435\u0437\u0430\u043f\u043d\u043e!) \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0438\u043d\u043e\u0433\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u043d\u043e\u0432\u044b\u0439 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u043a\u043e\u043c\u043c\u0438\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e secondary \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f (\u043f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, \u0432\u0435\u0440\u0441\u0438\u044e \u043e\u0442\u043a\u0430\u0442\u044b\u0432\u0430\u044e\u0442). \u0412 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043c\u0435\u0442\u043e\u0434 iter_commit \u043f\u0430\u0441\u0443\u0435\u0442 \u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0443\u0441\u0442\u043e\u0439 \u0441\u043f\u0438\u0441\u043e\u043a. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439. \u041f\u043e-\u044d\u0442\u043e\u043c\u0443, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u0438\u0442\u044c \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e. <\/p>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0430 \u0438\u0441\u0442\u043e\u0440\u0438\u044f \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u0430 all_but_last. \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u044f \u043e\u043f\u0443\u0441\u0442\u0438\u043b, \u043d\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043e\u043d \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u0432\u044b \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0435. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0442\u0430\u043c \u0431\u044b\u043b \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0437\u043e\u0432 <\/p>\n<pre><code class=\"python\">repo.iter_commits('{}..{}^'.format(parent.trunk_commit, child.trunk_commit), reverse = True)<\/code><\/pre>\n<p>. \u041e\u0434\u043d\u0430\u043a\u043e, \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u044c &quot;<b>x..y^<\/b>&quot; \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u00ab\u0432\u0441\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u043e\u0442 <b>x<\/b> \u0434\u043e <b>y<\/b>, \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u044f \u0441\u0430\u043c\u0438 <b>x<\/b> \u0438 <b>y<\/b>\u00bb, \u0430 \u00ab\u0432\u0441\u0435 \u043a\u043e\u043c\u043c\u0438\u0442\u044b \u043e\u0442 <b>x<\/b> \u0434\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f <b>y<\/b>, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u044d\u0442\u043e\u0433\u043e \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\u00bb. \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432, \u044d\u0442\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435. \u041d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0443 <b>y<\/b> \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439\u2026<\/p>\n<p>  \u0412 \u043e\u0431\u0449\u0435\u043c, \u0432\u0441\u0451 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c \u0445\u043e\u0440\u043e\u0448\u043e. \u0412\u0435\u0441\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0443\u043c\u0435\u0441\u0442\u0438\u043b\u0441\u044f \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u0432 300 \u0438 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0437\u0430 6 \u0447\u0430\u0441\u043e\u0432. \u041c\u043e\u0440\u0430\u043b\u044c: GitPython&#8217;\u043e\u043c \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u044f\u043a\u0438\u0435 \u043a\u0440\u0443\u0442\u044b\u0435 \u0448\u0442\u0443\u043a\u0438 \u0441 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u043c\u0438, \u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u0442\u0435\u0445\u0434\u043e\u043b\u0433 \u043b\u0443\u0447\u0448\u0435 \u043b\u0435\u0447\u0438\u0442\u044c \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/522942\/\"> https:\/\/habr.com\/ru\/post\/522942\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/522942\/\">\n<h3>\u0417\u0430\u0434\u0430\u0447\u0430<\/h3>\n<p>  \u0414\u0430\u043d\u043e: \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 OpenWRT (\u0430 \u043e\u043d \u2014 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 BuildRoot) \u0441 \u043e\u0434\u043d\u0438\u043c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u043c, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c \u043a\u0430\u043a feed. \u0417\u0430\u0434\u0430\u0447\u0430: \u0441\u043b\u0438\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0441 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c.<\/p>\n<h3>\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f<\/h3>\n<p>  \u041c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0438, \u043e\u0434\u043d\u0430\u0436\u0434\u044b, \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u0438 \u0434\u0430\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0443. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u043c\u0443\u0447\u0430\u0442\u044c\u0441\u044f \u0441 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u0435\u043c SDK, toolchain \u0438 \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u043c\u0438, \u0440\u0435\u0448\u0438\u043b\u0438 \u0432\u044b\u043b\u043e\u0436\u0438\u0442\u044c \u0432\u0435\u0441\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430 github \u0432 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f:<\/p>\n<pre><code class=\"plaintext\">\/target   \/\/ \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u044f\u0434\u0435\u0440 \/toolchain   \/\/ \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 gcc, musl \u0438 \u043f\u0440\u043e\u0447\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0441\u0431\u043e\u0440\u043a\u0438  \/feeds   \/\/ \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 \u0441 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u043c\u0438 \/package   \/\/ \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 ... <\/code><\/pre>\n<p>  \u0411\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u0447\u0430\u0441\u0442\u044c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0432 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439, \u0447\u0442\u043e\u0431 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u043b. \u041c\u044b \u0432\u0441\u0451 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0438, \u0432\u044b\u043b\u043e\u0436\u0438\u043b\u0438 \u043d\u0430 github \u0438 \u0441\u0442\u0430\u043b\u043e \u0445\u043e\u0440\u043e\u0448\u043e. <\/p>\n<p>  \u041c\u043d\u043e\u0433\u043e \u0432\u043e\u0434\u044b \u0443\u0442\u0435\u043a\u043b\u043e \u0441 \u0442\u0435\u0445 \u043f\u043e\u0440\u2026  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-311289","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=311289"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/311289\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=311289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=311289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=311289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}