xref: /dragonfly/contrib/file/magic/Magdir/revision (revision 6fca56fb)
1
2#------------------------------------------------------------------------------
3# $File: revision,v 1.11 2019/04/19 00:42:27 christos Exp $
4# file(1) magic for revision control files
5# From Hendrik Scholz <hendrik@scholz.net>
60	string/t	/1\ :pserver:	cvs password text file
7
8# Conary changesets
9# From: Jonathan Smith <smithj@rpath.com>
100	belong	0xea3f81bb	Conary changeset data
11
12# Type: Git bundles (git-bundle)
13# From: Josh Triplett <josh@freedesktop.org>
140	string	#\ v2\ git\ bundle\n	Git bundle
15
16# Type: Git pack
17# From: Adam Buchbinder <adam.buchbinder@gmail.com>
18# Update: Joerg Jenderek
19# URL: http://fileformats.archiveteam.org/wiki/Git
20# reference: https://github.com/git/git/blob/master/Documentation/technical/pack-format.txt
21# The actual magic is 'PACK', but that clashes with Doom/Quake packs. However,
22# those have a little-endian offset immediately following the magic 'PACK',
23# the first byte of which is never 0, while the first byte of the Git pack
24# version, since it's a tiny number stored in big-endian format, is always 0.
250	string	PACK
26# GRR: line above is too general as it matches also PackDir archive ./acorn
27# test for major version. Git 2017 accepts version number 2 or 3
28>4	ubelong	<9
29# Acorn PackDir with method 0 compression has root like ADFS::HardDisc4.$.AsylumSrc
30# or SystemDevice::foobar
31>>9	search/13 ::
32# but in git binary
33>>9	default	x	Git pack
34!:mime	application/x-git
35!:ext	pack
36# 4 GB limit implies unsigned integer
37>>>4	ubelong	x		\b, version %u
38>>>8	ubelong	x		\b, %u objects
39
40# Type: Git pack index
41# From: Adam Buchbinder <adam.buchbinder@gmail.com>
420	string	\377tOc		Git pack index
43>4	belong	=2		\b, version 2
44
45# Type: Git index file
46# From: Frederic Briare <fbriere@fbriere.net>
470	string	DIRC		Git index
48>4	belong	>0		\b, version %d
49>>8	belong	>0		\b, %d entries
50
51# Type:	Mercurial bundles
52# From:	Seo Sanghyeon <tinuviel@sparcs.kaist.ac.kr>
530	string	HG10		Mercurial bundle,
54>4	string	UN		uncompressed
55>4	string	BZ		bzip2 compressed
56
57# Type:	Subversion (SVN) dumps
58# From:	Uwe Zeisberger <zeisberg@informatik.uni-freiburg.de>
590	string	SVN-fs-dump-format-version:	Subversion dumpfile
60>28	string	>\0				(version: %s)
61
62# Type:	Bazaar revision bundles and merge requests
63# URL:	https://www.bazaar-vcs.org/
64# From:	Jelmer Vernooij <jelmer@samba.org>
650	string	#\ Bazaar\ revision\ bundle\ v Bazaar Bundle
660	string	#\ Bazaar\ merge\ directive\ format Bazaar merge directive
67