Граф коммитов

59 Коммитов

Автор SHA1 Сообщение Дата
Ryan Tomayko aa0e16982d get jruby working to the point it was before 2010-12-21 02:42:36 -08:00
Ryan Tomayko 00da68df23 open3_detach.rb no longer needed 2010-12-19 04:19:02 -08:00
Ryan Tomayko 2854f044ed refactor new exec logic into Grit::Process class
Pretty awesome. And the select(2) based implementation will fix a
long-standing bug where the grit process will hang when a git
process writes more than PIPE_BUF bytes to stderr or when the input
written to the git process's stdin exceeds PIPE_BUF. The old popen3
based logic writes all of stdin, then reads all of stdout, then
reads all of stderr so everything except stdout had to come in under
PIPE_BUF. This hasn't been much of an issue but is critical to our
plans on using `git cat-file --batch' and writing a bunch of SHA1s
on stdin.

Also moving toward using a common spawn method interface that's a
compatible subset of the Process.spawn method built into Ruby >=
1.9.1. The hope is that most non-MRI platforms will eventually
support Process.spawn out of the box and the ones that don't have
backports.
2010-12-19 04:18:25 -08:00
rick 120baf9dbc backport from github, attempt to load mime-types locally before loading rubygems 2010-10-07 18:14:39 -07:00
Tom Preston-Werner b8a3d3b374 Release 2.3.0 2010-09-29 13:46:45 -07:00
Tom Preston-Werner 7609e74e51 Release 2.2.0 2010-08-19 17:55:45 -07:00
Tom Preston-Werner 8bcad20576 Release 2.1.0 2010-08-04 19:02:19 -06:00
Tom Preston-Werner c0f0b4f7a6 Update to use RakeGem. 2010-08-03 17:17:05 -06:00
Scott Chacon 3073a5c70d merge in tag listing fix
Signed-off-by: rick <technoweenie@gmail.com>
2010-05-26 21:53:57 -07:00
Tom Preston-Werner 10476c3e66 do not fail for stupidity of mime-types in rubygems <= 1.2.0 2009-08-27 15:55:23 -07:00
Tom Preston-Werner d5cde35beb windows support 2009-07-23 17:52:32 -07:00
Tom Preston-Werner e976f76021 refactor more methods into git-ruby 2009-05-13 15:54:49 -07:00
Tom Preston-Werner 88554a5d84 facilitate git proxying 2009-04-23 15:44:47 -07:00
Johan Sørensen 85bc638ba4 Fixed annoying ruby1.9 loadpath errors 2009-02-14 11:49:16 +01:00
Brian Chapados 31a965cd15 Define String#getord(offset) for accessing a single byte at a String offset
Strings have changed significantly in Ruby 1.9.  The main issues related
to Grit are encodings, and the [] method.  The GitRuby implementation
currently uses code such as "buf[offset]" to access a byte (1 uint8_t byte in C)
of data. It would be nice to just use String#getbyte(offset), but this method is not
sensitive to the string encoding.  The default encoding for Ruby strings
is UTF-8, and I can't figure out how to make sure that all of the encodings
are correct such that String#getbyte will return the right value.

In Ruby 1.8, String[offset] returns the integer code of the character at offset.
In Ruby 1.9, String[offset] returns the actual character at offset. To get the integer
value, we need to call String#ord, which returns the int code of the first char.
Thus, to get Ruby 1.8 behavior in Ruby 1.9, we would need to call String[offset].ord.
My solution for now is just to define a getord(offset) method in a version dependent
manner, and use this in place of String[offset].  It's somewhat hackish, but
I can't think of a better solution right now.
2009-02-14 11:49:16 +01:00
Chris Wanstrath 2c17813002 Add support for annotated tags to Grit::Tag 2009-02-13 15:13:36 -08:00
Tom Preston-Werner dfd37f45a0 dynamic version method 2009-02-10 22:53:41 -08:00
Tom Preston-Werner 518385c5af switch ot using Jeweler for packaging tasks, and up to version 1.0.0 2009-01-27 21:18:02 -08:00
Scott Chacon 1c002dd4b5 added some blame and merge stuff 2008-12-11 15:00:29 -08:00
Tom Preston-Werner bd80d2e753 up to 0.9.4 2008-11-07 13:41:26 -05:00
Tom Preston-Werner f3cc40eeab digest is in stdlib 2008-11-07 13:35:54 -05:00
PJ Hyett 3c9493f71c Require open3_detach for Ruby and open3 for JRuby 2008-10-23 15:14:35 -07:00
PJ Hyett 3e9b907357 Patch popen3 so Process.detach is called if exception is thrown 2008-10-23 15:12:43 -07:00
PJ Hyett 5b4583d69b Use Open3 instead of Open4 2008-10-23 15:10:59 -07:00
Tom Preston-Werner 76cd39a436 add submodule detection 2008-08-29 01:30:08 -07:00
Bryce Kerley decfe7bbc9 fixed manifest and grit.rb to make correct gemspec 2008-07-31 13:50:44 -04:00
Bryce Kerley 4eb3bf067d resolved merge conflicts, hopefully amicably 2008-07-31 11:39:48 -04:00
Rob Sanheim 7c74272b85 oops, update version here too 2008-07-07 12:01:41 -04:00
Rob Sanheim d40e1f082a some docs 2008-06-27 22:22:41 -04:00
Rob Sanheim 3dabb6afb7 allow sending debug messages to a user defined logger if provided; tests for it 2008-06-27 22:07:29 -04:00
Scott Chacon f9dafa9f76 added code extracted from Gist work 2008-06-19 15:36:35 -07:00
Scott Chacon 28f28c504f added some simple write ops : add, remove, commit 2008-05-29 11:33:09 -07:00
Scott Chacon 1535929b52 bunch of changes 2008-05-29 10:32:19 -07:00
Scott Chacon f3a24ae371 added a pure-ruby git library and converted the cat_file commands to use it 2008-05-29 10:31:16 -07:00
Tom Preston-Werner 5987655432 proof of concept for commits to a bare repo 2008-04-30 22:03:18 -07:00
Tim Dysinger a1b2498e11 added refs super class for tag & head + added remote subclass 2008-04-25 12:25:49 -10:00
Tom Preston-Werner b778d45667 up to 0.8.1 2008-04-24 17:54:07 -07:00
Tom Preston-Werner 3c1e3d7944 up to 0.8.0 and add gemspec 2008-04-24 12:19:23 -07:00
Chris Wanstrath 5a0943123f add timeout protection to grit 2008-03-30 16:31:20 -07:00
Tom Preston-Werner d6016bc9fa require time for xmlschema 2008-03-25 21:32:29 -07:00
Tom Preston-Werner 11d191ef3f Merge branch 'defunkt' into local 2008-03-25 21:25:12 -07:00
Tim Carey-Smith f1964ad191 Add support for accessing repository configuration values 2008-03-07 13:22:10 +13:00
Chris Wanstrath 4f0ea0c7c8 Merge branch 'lazy_delegator'
Conflicts:

	lib/grit.rb
	lib/grit/tree.rb
2008-02-23 01:12:52 -08:00
Tom Preston-Werner 7a8d32cb18 add tag support 2008-02-10 18:49:09 -08:00
Tom Preston-Werner 02879cf62c add enable/disable daemon serve 2008-01-19 13:35:57 -08:00
Tom Preston-Werner 7bcc0ee821 prepare for public release 2008-01-07 20:41:55 -08:00
Tom Preston-Werner 3e0955045c add Commit#mime_type 2008-01-06 18:59:51 -08:00
Chris Wanstrath 4c596908ce rework lazy some to be more of a delegator 2007-10-29 05:20:10 -07:00
Tom Preston-Werner 46291865ba implement commit diff 2007-10-29 00:18:50 -07:00
Tom Preston-Werner 337539e896 prepare for packaging as gem 2007-10-25 09:23:01 -07:00