Skip to content
  • Kristian Høgsberg's avatar
    build: Only regenerate src/git-version.h when .git/logs/HEAD changes · 0aa19e94
    Kristian Høgsberg authored
    We rely on .git/logs/HEAD to be a file that changes when we commit to HEAD.
    The first idea is to make the makefile rule depend on .git/HEAD, but that's
    a symbolic ref that points to the current ref in refs/heads.  However,
    .git/logs/HEAD changes whenever we commit to HEAD, so we can use that in the
    makefile rule.
    0aa19e94