revision 2.4 KB

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