{"version":"1.0","blog_url":"https://giarrium.hatenablog.com/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgiarrium.hatenablog.com%2Fentry%2F2023%2F02%2F16%2F120036\" title=\"pre-commit hook\u3067SwiftFormat\u3092\u8d70\u3089\u305b\u3066\u3044\u308b - \u305c\u306e\u305c\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2023-02-16 12:00:36","blog_title":"\u305c\u306e\u305c","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/gurrium/","author_name":"gurrium","provider_url":"https://hatena.blog","width":"100%","title":"pre-commit hook\u3067SwiftFormat\u3092\u8d70\u3089\u305b\u3066\u3044\u308b","description":"\u6570\u65e5\u7d4c\u3063\u3066\u4fee\u6b63\u304c\u843d\u3061\u7740\u3044\u305f\u306e\u3067\u307e\u3068\u3081\u308b\u3002 #!/bin/sh ./Pods/SwiftFormat/CommandLineTool/swiftformat --lint --quiet --config ./.swiftformat $(git diff --cached --diff-filter=d --name-only | grep .swift) \u89e3\u8aac pre-commit hook commit\u64cd\u4f5c\u3092\u958b\u59cb\u3057\u305f\u3042\u3068commit\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u51e6\u7406\u306e\u524d\u306b\u5b9f\u884c\u3055\u308c\u308bhook\u3002\u3053\u3053\u30670\u3067\u306a\u3044\u5024\u3092\u8fd4\u3059\u3068commit\u304c\u4e2d\u65ad\u3055\u308c\u308b\u3002 \u5b9f\u884c\u6642\u306e\u30d1\u30b9\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u3002 https://git-scm\u2026","categories":["Git","Swift"],"type":"rich","height":"190","url":"https://giarrium.hatenablog.com/entry/2023/02/16/120036"}