From 1d845799ebc05bee9e3a68b7ad9dd5015277ca41 Mon Sep 17 00:00:00 2001 From: Scott Chacon Date: Sat, 8 Mar 2008 18:14:15 -0800 Subject: reverted the pure ruby code to system calls and split the pure ruby to a new library --- lib/git/raw/internal/object.rb | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 lib/git/raw/internal/object.rb (limited to 'lib/git/raw/internal/object.rb') diff --git a/lib/git/raw/internal/object.rb b/lib/git/raw/internal/object.rb deleted file mode 100644 index 172b917..0000000 --- a/lib/git/raw/internal/object.rb +++ /dev/null @@ -1,37 +0,0 @@ -# -# converted from the gitrb project -# -# authors: -# Matthias Lederhofer -# Simon 'corecode' Schubert -# -# provides native ruby access to git objects and pack files -# - -require 'digest/sha1' - -module Git - module Raw - module Internal - OBJ_NONE = 0 - OBJ_COMMIT = 1 - OBJ_TREE = 2 - OBJ_BLOB = 3 - OBJ_TAG = 4 - - OBJ_TYPES = [nil, :commit, :tree, :blob, :tag].freeze - - class RawObject - attr_accessor :type, :content - def initialize(type, content) - @type = type - @content = content - end - - def sha1 - Digest::SHA1.digest("%s %d\0" % [@type, @content.length] + @content) - end - end - end - end -end -- cgit