Commit History

Author SHA1 Message Date
  Jelmer Vernooij 58ac8a0c11 When replacing strnlen, use a different name to prevent clashing with system strnlen if it does actually exist. 13 years ago
  Jelmer Vernooij 223559c7f8 Make text argument to strnlen const. 14 years ago
  Martin 1a91ebb322 Provide strnlen for MSVC before version 8 14 years ago
  Nick Stenning a0739a94db Use Apple's Availability.h directly to determine current OS X version 14 years ago
  Ryan McKern 149b0d8ecc Fix for bug https://bugs.launchpad.net/dulwich/+bug/794543, where strnlen is defined twice if you're using OS X 10.7 (Lion). 14 years ago
  Augie Fackler 4066f9c3cb objects.parse_tree: more gracefully handle invalid modes in trees 14 years ago
  Dave Borowitz e67b62f74f objects: Allow tree entries to be sorted by name. 14 years ago
  Augie Fackler 3302c92c08 _objects.c: indentation/alignment tabs/spaces pedantry. 14 years ago
  Dave Borowitz 2660cd48a0 _objects: sorted_tree_items cleanup. 14 years ago
  Dave Borowitz 3461ff3bbb Subclass TreeEntry in objects.py. 14 years ago
  Dave Borowitz f749f272c4 Make TreeEntry a namedtuple for clarity. 14 years ago
  dak180 3e3ac24744 Cope with strnlen() not existing on Mac. 15 years ago
  Hans Kolek ca9a68de53 Provide strnlen() on mingw32 which doesn't have it. 15 years ago
  Tay Ray Chuan d38e55a35c dulwich/_objects.c 15 years ago
  Dave Borowitz f24570658f Fix memory leak in C implementation of sorted_tree_items. 15 years ago
  Dave Borowitz 06867d6fbf Add tests for sorted_tree_items and C implementation. 15 years ago
  Dave Borowitz 3c55de57f6 Convert tree mode to int when sorting. 15 years ago
  Dave Borowitz f116295de4 Add a typedef for Py_ssize_t, which is not available in python <2.5. 15 years ago
  Dave Borowitz 00c3b6a137 Correctly avoid parsing ShaFiles with fixed SHAs when calling sha(). 15 years ago
  Dave Borowitz 65a53fca3c Ensure we don't run past the end of the tree text. 15 years ago
  Dave Borowitz eb2afb8aea Add check() methods to object classes for consistency checking. 15 years ago
  Dave Borowitz cb9edefdec Change parse_tree to return a list rather than a dict. 15 years ago
  Jelmer Vernooij ca3bea00d2 Provide C implementation of tree item sorter. 15 years ago
  Jelmer Vernooij 977e48fa51 Use binascii.{unhexlify,hexlify}. Thanks to Ronny for the hint. 16 years ago
  Ronald Blaschke 41c5c4ecc8 Fix sentinels. 16 years ago
  Jelmer Vernooij 3bb18d219a Use CheckExact for strings. 16 years ago
  Jelmer Vernooij 957336e328 Fix memory leak in parse_tree. 16 years ago
  Jelmer Vernooij f2c2516fed Fix C implementation of parse_tree to return a dictionary. 16 years ago
  Jelmer Vernooij 0828832dc1 Add C extension for tree parsing. 16 years ago
  Jelmer Vernooij fcf383bdad Add (optional!) C implementations of hex_to_sha and sha_to_hex. 16 years ago