swh:1:snp:6df5a50b8107b6bbe1e51d0239d816a7503c536a
Raw File
Tip revision: a0feb8611d4c0b2b5d954efe4e98207f62223436 authored by Junio C Hamano on 13 September 2022, 19:18:30 UTC
Merge a handful of topics from the 'master' front
Tip revision: a0feb86
pack-mtimes.h
#ifndef PACK_MTIMES_H
#define PACK_MTIMES_H

#include "git-compat-util.h"

#define MTIMES_SIGNATURE 0x4d544d45 /* "MTME" */
#define MTIMES_VERSION 1

struct packed_git;

/*
 * Loads the .mtimes file corresponding to "p", if any, returning zero
 * on success.
 */
int load_pack_mtimes(struct packed_git *p);

/* Returns the mtime associated with the object at position "pos" (in
 * lexicographic/index order) in pack "p".
 *
 * Note that it is a BUG() to call this function if either (a) "p" does
 * not have a corresponding .mtimes file, or (b) it does, but it hasn't
 * been loaded
 */
uint32_t nth_packed_mtime(struct packed_git *p, uint32_t pos);

#endif
back to top