blob: 7e76bfa35c730f3590919647306a4339f27213ea [file] [log] [blame]
genrule(
name = "git-hash",
srcs = [".git/logs/HEAD"],
outs = ["git-hash.txt"],
cmd = "tail -1 $< | cut -d ' ' -f 2 > $@",
visibility = ["//visibility:public"],
)