mirror of
https://github.com/git/git
synced 2024-10-30 14:03:28 +00:00
3a60f6a2c4
We do not register any of the locks we acquire when compacting the reftable stack via our lockfiles interfaces. These locks will thus not be released when Git gets killed. Refactor the code to register locks as lockfiles. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
23 lines
521 B
C
23 lines
521 B
C
/*
|
|
Copyright 2020 Google LLC
|
|
|
|
Use of this source code is governed by a BSD-style
|
|
license that can be found in the LICENSE file or at
|
|
https://developers.google.com/open-source/licenses/bsd
|
|
*/
|
|
|
|
#ifndef SYSTEM_H
|
|
#define SYSTEM_H
|
|
|
|
/* This header glues the reftable library to the rest of Git */
|
|
|
|
#include "git-compat-util.h"
|
|
#include "lockfile.h"
|
|
#include "strbuf.h"
|
|
#include "tempfile.h"
|
|
#include "hash-ll.h" /* hash ID, sizes.*/
|
|
#include "dir.h" /* remove_dir_recursively, for tests.*/
|
|
|
|
int hash_size(uint32_t id);
|
|
|
|
#endif
|